Fix send function headers error

This commit is contained in:
venashial
2022-06-25 13:08:20 -07:00
parent e9d7df8862
commit fb3a9f1f29
7 changed files with 35 additions and 22 deletions

View File

@@ -2,7 +2,7 @@
import { page } from '$app/stores'
import IconMenu from 'virtual:icons/lucide/menu'
const cleanPath = (it) => it.replace(/\.\.\/routes\/.*\//, '').replace('.md', '')
const cleanPath = (it: string) => it.replace(/\.\.\/routes\/.*\//, '').replace('.md', '')
const components = Object.keys(import.meta.glob('../routes/components/**'))
.map(cleanPath)