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
![image](https://private-user-images.githubusercontent.com/305680/299429415-0c54eb71-b358-4aa9-a4b3-98bc87421da1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg1ODY1ODQsIm5iZiI6MTcxODU4NjI4NCwicGF0aCI6Ii8zMDU2ODAvMjk5NDI5NDE1LTBjNTRlYjcxLWIzNTgtNGFhOS1hNGIzLTk4YmM4NzQyMWRhMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYxN1QwMTA0NDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hZjQxNmQzYzBiYjVhZThmYzIwMTc0NDkzZmQ3Nzk1ZDRkMzgwNjkyNDEzN2UxNmNkZDkyOTI0Y2NiZjMwYmNhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.j9b4QZ-ZJaS1PI4pg43mhKiAsBRen-RcPWkGPrYqJYI)
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