mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 14:39:30 +08:00
7 lines
255 B
TypeScript
7 lines
255 B
TypeScript
import type { LayoutLoad } from './$types'
|
|
export const prerender = true
|
|
export const trailingSlash = 'always'
|
|
export const load: LayoutLoad = async ({ url, fetch }) => ({
|
|
path: url.pathname,
|
|
res: await fetch('/posts.json').then(res => res.json())
|
|
})
|