Skip to content

Commit

Permalink
fix(frontend): provided href invalid error
Browse files Browse the repository at this point in the history
  • Loading branch information
gangjun06 committed Dec 27, 2022
1 parent cfea0dc commit 76da449
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,5 @@ yarn-error.log*
.env.production.local
.vercel
.env.infisical

.vscode
7 changes: 0 additions & 7 deletions frontend/.vscode/settings.json

This file was deleted.

3 changes: 3 additions & 0 deletions frontend/next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module.exports = {
defaultLocale: "en",
locales: ["en", "ko"],
},
fallbackLng: {
default: ["en"],
},

reloadOnPrerender: process.env.NODE_ENV === "development",

Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const App = ({ Component, pageProps, ...appProps }) => {
useEffect(() => {
const storedLang = localStorage.getItem("lang");
if (router.locale ?? "en" !== storedLang ?? "en") {
router.push(router.pathname, router.pathname, {
router.push(router.asPath, router.asPath, {
locale: storedLang ?? "en",
});
}
Expand Down

0 comments on commit 76da449

Please sign in to comment.