-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Programmatically/dynamically define pages #1691
Comments
Use case: #1661. @OrangeTimes I don't think there is any React/Vue/Solid(/...) framework out there that supports this? |
Yes, Next.Js and other similar frameworks don't support this at the moment |
This is possible with Solid Start and Nuxt. I think https://nuxt.com/docs/guide/recipes/custom-routing https://docs.solidjs.com/solid-start/building-your-application/routing#additional-route-config https://remix.run/docs/en/main/discussion/routes#manual-route-configuration |
If you know some links to their docs about it that would be great.
…On Wed 12. Jun 2024 at 18:40, Patrick G ***@***.***> wrote:
This is possible with Solid Start and Nuxt.
—
Reply to this email directly, view it on GitHub
<#1691 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHVQRXKKF6EH2W3NQKC35LZHB2YNAVCNFSM6AAAAABJF4JMM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTGQ3TSOJRGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I edited the post with some docs links. Sorry |
Thank you! |
Correct me if I'm wrong, but in Remix it will be evaluated one time and not on each request. If I need to push a new file route on some incoming request condition (create a file route on the fly) this will not work most probably. |
Thats correct. For your use case, I'd suggest just using a client side router (Whose routes can be added to on the server / client) + a backend service that you write that will ssr the pages manually. |
We currently have a very custom and quite old SSR server. If there was a way to create file routes on the fly using onBeforeRoute for example it would drastically simplify things for us and our existing setup and would unblock us from adopting Vike potentially. |
Description
Current Vike API doesn't provide any way how to programmatically create a custom file route for situations when +Page.ts or +Page.js are created externally on the filesystem or in another dynamic fashion.
Addendum by brillout
This feature will be implemented at some point as we want Vike extensions to be able to define pages. (Important for one of Vike's vision.)
Other use cases:
The text was updated successfully, but these errors were encountered: