Skip to content

Commit

Permalink
fix(deployment): remove translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-benlaredj committed Nov 27, 2023
1 parent e550321 commit 792f09f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/pages/_app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ function MyApp({ Component, pageProps }) {
);
}

export default appWithTranslation(MyApp);
export default MyApp;
19 changes: 5 additions & 14 deletions src/pages/item/[id].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ function ItemPage({ item, otherItems }) {
);
}

export async function getStaticPaths() {
const paths = [{ params: { id: "ASl4mMHj8pF4ZReIKyKl" } }];
return { paths, fallback: "blocking" };
}

export async function getStaticProps({ params }) {
let item = await getDocData("items", params.id);
item = JSON.parse(JSON.stringify(item));

let otherItems = await getItemByCategory(item.categories);
otherItems = JSON.parse(JSON.stringify(otherItems));

Expand All @@ -58,17 +62,4 @@ export async function getStaticProps({ params }) {
};
}

export async function getStaticPaths({ locales }) {
const paths = [];
for (const locale of locales) {
paths.push({
params: {
id: "ASl4mMHj8pF4ZReIKyKl",
},
locale,
});
}
return { paths, fallback: "blocking" };
}

export default ItemPage;

1 comment on commit 792f09f

@vercel
Copy link

@vercel vercel bot commented on 792f09f 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.