Replies: 1 comment 2 replies
-
I can unfortunately not run Collecting page data ...TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11600:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
cause: Error: getaddrinfo ENOTFOUND urltobacked.com
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:118:26)
at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'urltobacked.com'
} I tried changing export async function generateStaticParams({
params: { locale }
}: {
params: { locale: string };
}) {
return [
{
slug: 'test',
locale: 'en'
}
];
} After this, the HTML files are built: I'll move this to a discussion for the time being since this seems to be a usage question. In case a bug in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello. The package is wonderful, but I am encountering some issues with unstable_setRequestLocale and generateStaticParams. I have a page located at [locale]/help/[slug]/page.tsx and I'm attempting to generate static pages during build time. It appears to be functioning correctly, but the generated .html files are not present in the .next/server/app folder. In fact, there are only empty folders.
Mandatory reproduction URL (CodeSandbox or GitHub repository)
https://codesandbox.io/p/sandbox/next-intl-bug-template-app-forked-34v6cp
Reproduction description
Here is page.tsx:
Here is .next/server/app
As you can see folders are empty
Expected behaviour
Here is example folder structure from Next.js template using generateStaticParams
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions