1
0
mirror of https://github.com/Infisical/infisical.git synced 2025-03-29 22:02:57 +00:00

fix(frontend): provided href invalid error

This commit is contained in:
이강준
2022-12-27 15:59:11 +09:00
parent cfea0dc66f
commit 76da449463
4 changed files with 6 additions and 8 deletions

2
frontend/.gitignore vendored

@ -32,3 +32,5 @@ yarn-error.log*
.env.production.local
.vercel
.env.infisical
.vscode

@ -1,7 +0,0 @@
{
"i18n-ally.localesPaths": [
"locales",
"public/locales"
],
"i18n-ally.sourceLanguage": "en"
}

@ -10,6 +10,9 @@ module.exports = {
defaultLocale: "en",
locales: ["en", "ko"],
},
fallbackLng: {
default: ["en"],
},
reloadOnPrerender: process.env.NODE_ENV === "development",

@ -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",
});
}