Custom 404 page/logic when story does not exist in Storyblok #936
Labels
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Describe the issue you're facing
I'm using the SDK only setting the version to published.
Inside my page.ts file i'm calling the storyblokAPi.get function to get a page that does not exist.
I would like to check if this page exists or not and be able to return my own 404 (that i want to call from Storyblok aswell).
Currently in my terminal i do see this:
But my frontend itself shows:
I tried debugging and placing breakpoints after calling the storyblokApi.get function but it seems it does not even get passed that.
Reproduction
https://github.com/storyblok/storyblok-svelte/tree/main/playground-sveltekit
Steps to reproduce
Follow the tutorial that results in this: https://github.com/storyblok/storyblok-svelte/tree/main/playground-sveltekit
Call a not existing page in Storyblok
System Info
Used Package Manager
npm
Error logs (Optional)
No response
Validations
The text was updated successfully, but these errors were encountered: