-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correct permanent redirect for root page
- Loading branch information
Showing
3 changed files
with
20 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
{ | ||
"typescript.tsdk": "./node_modules/typescript/lib", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"cSpell.enableFiletypes": ["mdx"], | ||
"cSpell.words": ["netcanvas", "Tipbox"], | ||
"cSpell.words": [ | ||
"netcanvas", | ||
"Tipbox" | ||
], | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
} | ||
}, | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": "always", | ||
"source.fixAll": "always", | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { redirect } from "next/navigation"; | ||
import { permanentRedirect } from "next/navigation"; | ||
|
||
export default function RootPage() { | ||
// Redirect to en for now. This is a limitation of static site generation | ||
// that we need to work around by creating a client component to read the | ||
// navigator.language and redirect to the appropriate locale. | ||
redirect("/en", { permanent: true }); | ||
permanentRedirect("/en"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters