thomas_bitcraft
thomas_bitcraft
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
Sure this makes sense for a lot of cases. But if I generate everything and I want to always show my predefined 404 page if the file is not found in my file storage it would be nice to have the option to define a prerendered page for that
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
alright thanks for all the help - maybe in the future there will be a way to prerender the error page, or to disable the url rewrite "feature".
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
@manniL / TheAlexLichter In general the behavior is strange if I use the 404.html directly. I linked now the 404.html as fallback: https://www.wenatex.com/de/de/asdasdasd - but it seems it does not use the logic in the error.vue file, but uses pages/[...slug].vue which is my default pagebuilder site does not load any content. If I call it directly it works: https://wenatex-website.s3.eu-central-1.amazonaws.com/404.html - but takes a lot of time And this would be my custom prerendered error page, but there the path is changed to /error as soon as the page is loaded: https://wenatex-website.s3.eu-central-1.amazonaws.com/error-page.html So all options are not really good 😅
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
better would be a prerendered one to prevent the API delay
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
Yes, this page is used as a fallback for a static page hosted in the aws s3. In general, it works now, but the URL rewrite is kind of ugly.
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
@manniL / TheAlexLichter
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
So there is currently no way to prevent the url rewrite right?
22 replies
NNuxt
Created by thomas_bitcraft on 3/28/2024 in #❓・help
Nuxt generate error page
@manniL / TheAlexLichter Yes but the content of the page is not prerendered therefore empty. I tried to prerender it by making a custom route: routes.push({ name: error, path: '/error', file: '~/error.vue', }); This works in theorie - but now the browser url is rewritten to /error when i get an 404. Is it possible to disable this?
22 replies