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

locale-router with prerendering fails #185

Open
Metis77 opened this issue Jun 24, 2024 · 3 comments
Open

locale-router with prerendering fails #185

Metis77 opened this issue Jun 24, 2024 · 3 comments

Comments

@Metis77
Copy link

Metis77 commented Jun 24, 2024

Whenever I try to add sveltekit prerendering I get errors like:

node:internal/event_target:1083
  process.nextTick(() => { throw err; });
                           ^
Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app:
  - /[lang]/about

What should the example locale-router should look like, that this would work?

@Metis77 Metis77 changed the title locale-router with partly prerendering fails locale-router with prerendering fails Jun 24, 2024
@bertPB
Copy link

bertPB commented Jun 26, 2024

Would also like info on this.

@Metis77
Copy link
Author

Metis77 commented Jun 26, 2024

This might also be related to #132

@lukas-buergi
Copy link

lukas-buergi commented Aug 11, 2024

You need a link that points to those pages or add them svelte.config.js like

		prerender: {
			entries: supportedLocales.reduce((acc, locale) => [...acc, `/${locale}`, `/${locale}/401`, `/${locale}/403`, `/${locale}/404`, `/${locale}/500`], ['*']),
		}

Check out the examples.

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

3 participants