Skip to content

Commit 50a52fd

Browse files
author
Dimitri POSTOLOV
authoredSep 4, 2023
[wip v3]: new i18n, remove _app.mdx, remove newNextLinkBehavior (#2070)
1 parent 0fe55db commit 50a52fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1062
-1608
lines changed
 

‎.changeset/early-walls-hammer.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'nextra': major
3+
---
4+
5+
- ❌ remove `_app.mdx`, use `_app.{js,jsx}` or `_app.{ts,tsx}` for TypeScript projects instead
6+
7+
- ❌ remove Nextra middleware `nextra/locales`
8+
9+
- ❌ remove `parseFileName` from `nextra/utils`
10+
11+
- ❌ remove `nextra/filter-route-locale`
12+
13+
- ❌ remove `resolvePageMap` and `pageMapCache` from `nextra/page-map`
14+
15+
- ❌ remove `__nextraPageOptions.pageNextRoute`
16+
17+
- ❌ remove `pageOpts.route` and `pageOpts.newNextLinkBehavior`
18+
19+
- ❌ remove `LoaderOptions.defaultLocale`
20+
21+
- ❌ remove `__nextra_internal__.context[route].themeConfig`
22+
23+
- ✅ add `nextra/fetch-filepaths-from-github`
24+
25+
- save `pageMap` to `.next/static/chunks/nextra-page-map-{locale}.mjs`
26+
27+
- save `fileMap` to `.next/static/chunks/nextra-file-map.mjs`
28+
29+

‎.eslintrc.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ module.exports = {
210210
{
211211
files: [
212212
'prettier.config.js',
213-
'postcss.config.js',
214-
'tailwind.config.js',
213+
'postcss.config.{js,cjs}',
214+
'tailwind.config.{js,cjs}',
215215
'next.config.js',
216216
'.eslintrc.cjs'
217217
],

0 commit comments

Comments
 (0)