No description
Find a file
JJ Kasper bbc1a21c74
Update to have default locale matched on root (#17669)
Follow-up PR to https://github.com/vercel/next.js/pull/17370 when the path is not prefixed with a locale and the default locale is the detected locale it doesn't redirect to locale prefixed variant. If the default locale path is visited and the default locale is visited this also redirects to the root removing the un-necessary locale in the URL. 

This also exposes the `defaultLocale` on the router since the RFC mentions `Setting a defaultLocale is required in every i18n library so it'd be useful for Next.js to provide it to the application.` although doesn't explicitly spec where we want to expose it. If we want to expose it differently this can be updated.
2020-10-08 11:12:17 +00:00
.github Update workflow step to restore cache (#17656) 2020-10-07 09:55:09 -05:00
.vscode skip node internals (#13345) 2020-05-25 16:21:06 +02:00
bench Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
docs change anonymous functions to named in docs examples (#17510) 2020-10-05 21:16:47 +00:00
errors Add warning when exporting with custom routes (#17538) 2020-10-05 07:11:06 +00:00
examples Fix with-apollo example (#17686) 2020-10-08 03:45:28 +00:00
packages Update to have default locale matched on root (#17669) 2020-10-08 11:12:17 +00:00
test Update to have default locale matched on root (#17669) 2020-10-08 11:12:17 +00:00
.eslintignore Expose dotenv loading under separate package (#17152) 2020-09-25 13:14:28 -05:00
.eslintrc.json Remove unused variable (#13716) 2020-06-03 11:58:58 -04:00
.gitignore ci: add pnp test (#16255) 2020-08-17 13:39:57 -04:00
.npmrc Remove version prefix 2018-10-02 01:35:56 +02:00
.prettierignore Expose dotenv loading under separate package (#17152) 2020-09-25 13:14:28 -05:00
.prettierignore_staged Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
.prettierrc.json Prettier trailingComma default value to es5 since 2.0 (#14391) 2020-06-22 13:25:24 +02:00
azure-pipelines.yml Update to track test timings separate for Azure and Actions (#12083) 2020-04-21 16:11:04 -04:00
check-examples.sh Ensure all examples are MIT licensed (#16691) 2020-08-29 22:32:35 -04:00
check-pre-compiled.sh Pre-ncc compiled packages to prevent re-nccing unnecessarily (#11569) 2020-04-07 09:42:16 -04:00
CODE_OF_CONDUCT.md Update Code of Conduct email address (#12108) 2020-04-22 16:27:24 +02:00
contributing.md Simplify example usage instructions (#16678) 2020-08-29 22:22:02 -04:00
jest.config.js Use the jest-circus test runner (#12974) 2020-05-16 16:56:06 -04:00
lerna.json v9.5.4 2020-10-07 13:56:56 -05:00
license.md Update year on license files 2020-04-21 12:24:08 +02:00
lint-staged.config.js Update browserslist/caniuse-lite (#13605) 2020-05-31 19:37:01 +00:00
package.json Include all files in Prettier (#17050) 2020-09-14 02:53:19 +00:00
publish-release.sh Make sure to exit publish script with correct code (#10310) 2020-01-28 14:03:32 -05:00
readme.md Monorepo (#5341) 2018-10-01 01:02:10 +02:00
release-stats.sh Update release stats workflow (#17580) 2020-10-05 09:32:12 +00:00
release.js Remove common PR title prefixes 2020-08-07 09:34:50 +02:00
run-tests.js Stabilize more tests (#15470) 2020-07-26 04:57:06 +00:00
SECURITY.md Create SECURITY.md 2020-07-13 19:25:08 +02:00
test-file.txt Add additional file serving tests (#12479) 2020-05-04 11:58:19 -05:00
UPGRADING.md Move upgrading guide to /docs (#10727) 2020-02-28 23:46:18 +01:00
yarn.lock Add initial changes for i18n support (#17370) 2020-10-07 21:11:01 +00:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Contributing

Please see our contributing.md.

Authors