-
-
Notifications
You must be signed in to change notification settings - Fork 353
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
Remove dist/server/
upon $ vike build
+ pre-rendering
#1851
Comments
If vike/vike/node/plugin/plugins/buildConfig.ts Lines 151 to 169 in 962127b
Or they still needed in terms of |
See https://vike.dev/clientRouting. Indeed, of the two entries can be removed (but not always since |
But the The JS check seems to inject the server routing file, which is expected as the default behaviour as client routing is disabled. But isn't it redundant to have |
@brillout checking again, if the pre-rendering is enabled is it safe to remove |
Actually, why do you want to remove them in the first place? What's the issue you're trying to solve? |
It's actually trying to work with netlify forms. So, ideally pre-rendering should allow them to be detectable. But, the whole netlify form detection behaviour is bit of a black box. So, if we remove routing` files the detection is working. But it the routing files exists, i think its rendering them as client side ones and not able to detect. Might be a bug on the netlify detection side itself, but checking we can remove routing files. |
@JayaKrishnaNamburu Can you create a new GitHub discussion and elaborate more? It's unrelated to this issue. I'll reply over there. |
Description
dist/server/
isn't needed for a fully pre-rendered app, and users are often confused about why it's there. We can remove it once we implement Vike's CLI.It should only be removed if the user doesn't disable build chaining.
Blocker: Vike's CLI.
The text was updated successfully, but these errors were encountered: