Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
next-18next の ignoreRoutes に短縮 URL で使用する URL を追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
calmery committed Nov 3, 2020
1 parent 44aa5fa commit 5bd5809
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/order": ["error", { "alphabetize": { "order": "asc" } }],
"no-irregular-whitespace": "off",
"react/prop-types": "off"
},
"settings": {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/augmented-reality.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NextPage } from "next";
import React from "react";

const AugmentedReality: NextPage = () => {
return <div />;
return <div>{window && window.location.search}</div>;
};

export default AugmentedReality;
1 change: 1 addition & 0 deletions src/utils/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ type I18nLanguage = "en" | "ja";

const { appWithTranslation, useTranslation, i18n } = new NextI18Next({
defaultLanguage: "ja",
ignoreRoutes: ["/s/"], // 短縮 URL で使用する
localePath: path.resolve("./public/locales"),
localeSubpaths: nextConfig.default().publicRuntimeConfig.localSubpaths,
otherLanguages: ["en"],
Expand Down

0 comments on commit 5bd5809

Please sign in to comment.