Skip to content

Commit

Permalink
correct permanent redirect for root page
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Nov 20, 2024
1 parent 813a2fb commit c1be65a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
14 changes: 10 additions & 4 deletions .vscode/settings.json
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",
},
}
4 changes: 2 additions & 2 deletions apps/documentation/app/page.tsx
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");
}
10 changes: 8 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,23 @@
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
"recommended": true,
"correctness": {
"noUnusedImports":"error"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"lineWidth": 120
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
},
"javascript": { "formatter": { "quoteStyle": "double" } }
}

0 comments on commit c1be65a

Please sign in to comment.