Tried to replace Storybook in the new blog repo and run in to some issues:
The docs says to use: "localSliceCanvasURL": "http://localhost:3000/_canvas" but SM tells me that I need: "localSlicePreviewURL": "http://localhost:3000/_preview", this is kind of confusing.
When going for the "localSlicePreviewURL": "http://localhost:3000/_canvas": I get previews working inside SM, but problem is I can't access my posts which lives in /pages/_post.vue since Nuxt thinks it should use _canvas for post rendering instead, this is because _canvas comes before _post alphabetically. This results in an error page that says "You're seeing this page because you're accessing Slice Canvas directly" when trying to reach a post in Nuxt.
If I instead use: "localSlicePreviewURL": "http://localhost:3000/_preview", then SliceCanvas preview tries to render a post since Nuxt choses _post before _preview.
Versions
Reproduction
Tried to replace Storybook in the new blog repo and run in to some issues:
The docs says to use:
"localSliceCanvasURL": "http://localhost:3000/_canvas"
but SM tells me that I need:"localSlicePreviewURL": "http://localhost:3000/_preview"
, this is kind of confusing."localSlicePreviewURL": "http://localhost:3000/_canvas"
: I get previews working inside SM, but problem is I can't access my posts which lives in/pages/_post.vue
since Nuxt thinks it should use _canvas for post rendering instead, this is because _canvas comes before _post alphabetically. This results in an error page that says "You're seeing this page because you're accessing Slice Canvas directly" when trying to reach a post in Nuxt."localSlicePreviewURL": "http://localhost:3000/_preview"
, then SliceCanvas preview tries to render a post since Nuxt choses _post before _preview.