Skip to content

Commit

Permalink
fix: deployment error
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-benlaredj committed Nov 27, 2023
1 parent 835d46f commit e550321
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/item/[id].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" };
}

Expand Down

1 comment on commit e550321

@vercel
Copy link

@vercel vercel bot commented on e550321 Nov 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.