fix(frontend): provided href invalid error

pull/46/head
이강준 1 year ago
parent cfea0dc66f
commit 76da449463
No known key found for this signature in database
GPG Key ID: FB63ECACBEBFE9CD

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

Loading…
Cancel
Save