We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d13b36 + 6cda6c0 commit 10e7fa0Copy full SHA for 10e7fa0
1 file changed
frontend/app/[locale]/shop/products/[slug]/page.tsx
@@ -12,7 +12,15 @@ import { formatMoney } from "@/lib/shop/currency";
12
import { Link } from "@/i18n/routing";
13
import { locales } from "@/i18n/config";
14
15
+const shouldSkipStaticParams =
16
+ process.env.NETLIFY === "true" ||
17
+ process.env.SKIP_BUILD_STATIC_PARAMS === "true";
18
+
19
export async function generateStaticParams() {
20
+ if (shouldSkipStaticParams) {
21
+ return [];
22
+ }
23
24
const all: { locale: string; slug: string }[] = [];
25
26
for (const locale of locales) {
0 commit comments