mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-04-30 14:29:29 +08:00
fix trailingSlash
This commit is contained in:
parent
abf0af9d0a
commit
5f82002927
1 changed files with 1 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
|||
import type { LayoutLoad } from './$types'
|
||||
export const prerender = true
|
||||
export const trailingSlash =
|
||||
!Object.keys(process.env).some(key => ['VERCEL', 'CF_PAGES', 'NETLIFY'].includes(key)) && process.env.ADAPTER !== 'node'
|
||||
? 'always'
|
||||
: undefined
|
||||
export const trailingSlash = 'always'
|
||||
export const load: LayoutLoad = async ({ url, fetch }) => ({
|
||||
path: url.pathname,
|
||||
res: await fetch('/posts.json').then(res => res.json())
|
||||
|
|
Loading…
Reference in a new issue