Skip to content
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

Allow overriding prerender route rules #1078

Closed
pi0 opened this issue Mar 22, 2023 · 1 comment
Closed

Allow overriding prerender route rules #1078

pi0 opened this issue Mar 22, 2023 · 1 comment
Assignees

Comments

@pi0
Copy link
Member

pi0 commented Mar 22, 2023

#1033 (comment)

Currently, we directly consume route rules in prerenderer to infer routes to prerender (https://github.com/unjs/nitro/blob/main/src/prerender.ts#L32)

We need to additionally create a radix3 instance that can actually match and merge route rules to handle overrides (for example prerender /news/** except /news/live with prerender: false)

@pi0
Copy link
Member Author

pi0 commented Mar 27, 2023

Solving with #45 (i was wrong in above description)

@pi0 pi0 closed this as completed Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant