Skip to content

Commit

Permalink
fix: vercel runtime is missing toSpliced
Browse files Browse the repository at this point in the history
  • Loading branch information
braebo committed May 17, 2024
1 parent 9805e3d commit f7d83b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/routes/demo/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export const load = () => {
eager: true,
}),
)
.toSpliced(0, 1)
.map((path) => path.replace(/\.\/+/g, '').replace(/\/\+page\.svelte$/, ''))
.slice(1)
.map(path => path.replace(/\.\/+/g, '').replace(/\/\+page\.svelte$/, ''))

return { routes }
}
}

0 comments on commit f7d83b7

Please sign in to comment.