You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the application locally with npm run dev or npm run preview the page is found and rendered correctly. But when deploying to Vercel a 404 error is thrown.
When I use the [...slug] syntax it seems to work but there is another issue when trying to read the slug and use it to load a firestore document. It strangely contains the '/__data.json' suffix when I click on a link which points to this ISR route.
As a workaround I just remove this suffix in order to get the url.
export const load = async ({ params }) => {
let url = `/Transfers/${params.slug}`;
url = url.replace("/__data.json", "");
...
// load data from firestore with url
})
Describe the bug
I have the following page structure:
/Transfers/From-[from]/To-[to]/By-[by]
Under the page folder
By-[by]
I added a+page.server.js
with ISR enabled:When I run the application locally with
npm run dev
ornpm run preview
the page is found and rendered correctly. But when deploying to Vercel a 404 error is thrown.Reproduction
Visit https://sveltekit-isr-demo.vercel.app/Transfers/From-Krabi-sss/To-Samui/By-Train
Github: https://github.com/tonprince/sveltekit-isr-demo
Logs
No response
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: