Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pnpm-lock.yaml @nodejs/web-infra
# Framework
apps/site/next.config.mjs @nodejs/web-infra
apps/site/next.dynamic.mjs @nodejs/web-infra
apps/site/middleware.ts @nodejs/web-infra
apps/site/proxy.ts @nodejs/web-infra
apps/site/navigation.mjs @nodejs/web-infra
apps/site/playwright.config.mjs @nodejs/web-infra

Expand Down
2 changes: 1 addition & 1 deletion apps/site/middleware.ts → apps/site/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export default createMiddleware({
alternateLinks: false,
});

// We only want the middleware to run on the `/` route
// We only want the proxy to run on the `/` route
// to redirect users to their preferred locale
export const config = { matcher: ['/'] };
2 changes: 1 addition & 1 deletion docs/technologies.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ We use a custom i18n solution because:

#### Locale Detection and Routing

- `next.middleware.js`: Handles browser locale detection and redirects
- `proxy.ts`: Handles browser locale detection and redirects
- Falls back to `/en` for unsupported locales
- Provides seamless user experience across languages

Expand Down
2 changes: 1 addition & 1 deletion platforms/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"dependencies": {
"@flarelabs-net/wrangler-build-time-fs-assets-polyfilling": "^0.0.1",
"@opennextjs/cloudflare": "^1.20.2",
"@opennextjs/cloudflare": "^1.20.10",
"@sentry/cloudflare": "^10.68.0",
"@typescript/vfs": "^1.6.4",
"twoslash": "^0.3.9",
Expand Down
Loading
Loading