How to make a static not-found with l10n middleware?
Unanswered
GetPsyched posted this in #help-forum
All of my pages are within
This is fine, except that it makes the route dynamic instead of static even though I have the locales defined in
app/[locale], and because of this I had to rename app/not-found.tsx to app/[locale]/[...catchAll]/page.tsx which means that NextJS doesn't detect it as a global not found anymore.This is fine, except that it makes the route dynamic instead of static even though I have the locales defined in
generateStaticParams.Route (app) Size First Load JS
┌ ○ /_not-found 875 B 82.7 kB
├ ◠/[locale] 5.95 kB 107 kB
├ ├ /en
├ └ /hi
├ λ /[locale]/[...catchAll] 175 B 88.8 kB
...
â—‹ (Static) prerendered as static content
â— (SSG) prerendered as static HTML (uses getStaticProps)
λ (Dynamic) server-rendered on demand using Node.js