From e550321c25530bdcff635d39a80d4f69b11b74c5 Mon Sep 17 00:00:00 2001 From: ismailbenlaredj Date: Mon, 27 Nov 2023 13:25:49 +0100 Subject: [PATCH] fix: deployment error --- src/pages/item/[id].jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages/item/[id].jsx b/src/pages/item/[id].jsx index 6172a05..b0379e8 100644 --- a/src/pages/item/[id].jsx +++ b/src/pages/item/[id].jsx @@ -58,8 +58,16 @@ export async function getStaticProps({ params }) { }; } -export async function getStaticPaths() { - const paths = [{ params: { id: "ASl4mMHj8pF4ZReIKyKl" } }]; +export async function getStaticPaths({ locales }) { + const paths = []; + for (const locale of locales) { + paths.push({ + params: { + id: "ASl4mMHj8pF4ZReIKyKl", + }, + locale, + }); + } return { paths, fallback: "blocking" }; }