-
Notifications
You must be signed in to change notification settings - Fork 375
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to prerender *404 page? #1574
Comments
well, since solidstart uses nitro, it is a solidstart problem even if it originates from nitro |
using the code provided with these versions
cloudflare-pagesbut you probably don't need it for this preset as workers can already serve a 404 pagecloudflare-pages-staticimport { defineConfig } from '@solidjs/start/config';
export default defineConfig({
server: {
preset: 'cloudflare-pages-static',
prerender: {
// crawlLinks: true, // required for `cloudflare-pages` preset
autoSubfolderIndex: false,
routes: ['/404'],
},
},
}); This might be what you want which also generates a redirect rule |
I would expect you to be able to put |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Duplicates
Latest version
Current behavior 😯
when i prerender
/about
it creates aabout/index.html
file correctly. but when i prerender"/*404"
it generates nothing.Expected behavior 🤔
No response
Steps to reproduce 🕹
Context 🔦
No response
Your environment 🌎
No response
The text was updated successfully, but these errors were encountered: