Skip to content

Commit af0358f

Browse files
authored
Revert "feat: migrate React.dev to the App Router (#7437)" (#7466)
This reverts commit 0eb0f88.
1 parent 0eb0f88 commit af0358f

Some content is hidden

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

70 files changed

+1635
-1805
lines changed

.eslintrc

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "^_"}],
99
"react-hooks/exhaustive-deps": "error",
1010
"react/no-unknown-property": ["error", {"ignore": ["meta"]}],
11-
"react-compiler/react-compiler": "error",
12-
"@next/next/no-img-element": "off",
13-
"@next/next/no-html-link-for-pages": "off"
11+
"react-compiler/react-compiler": "error"
1412
},
1513
"env": {
1614
"node": true,

next-env.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

next.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ const nextConfig = {
1111
experimental: {
1212
scrollRestoration: true,
1313
reactCompiler: true,
14-
newDevOverlay: true,
1514
},
16-
1715
env: {},
18-
serverExternalPackages: [],
1916
webpack: (config, {dev, isServer, ...options}) => {
2017
if (process.env.ANALYZE) {
2118
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');

package.json

+6-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "CC",
66
"scripts": {
77
"analyze": "ANALYZE=true next build",
8-
"dev": "next dev",
8+
"dev": "next-remote-watch ./src/content",
99
"build": "next build && node --experimental-modules ./scripts/downloadFonts.mjs",
1010
"lint": "next lint",
1111
"lint:fix": "next lint --fix",
@@ -15,33 +15,32 @@
1515
"prettier:diff": "yarn nit:source",
1616
"lint-heading-ids": "node scripts/headingIdLinter.js",
1717
"fix-headings": "node scripts/headingIdLinter.js --fix",
18-
"ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids",
18+
"ci-check": "npm-run-all prettier:diff --parallel lint tsc lint-heading-ids rss",
1919
"tsc": "tsc --noEmit",
2020
"start": "next start",
2121
"postinstall": "is-ci || husky install .husky",
22-
"check-all": "npm-run-all prettier lint:fix tsc"
22+
"check-all": "npm-run-all prettier lint:fix tsc rss",
23+
"rss": "node scripts/generateRss.js"
2324
},
2425
"dependencies": {
2526
"@codesandbox/sandpack-react": "2.13.5",
2627
"@docsearch/css": "^3.8.3",
2728
"@docsearch/react": "^3.8.3",
2829
"@headlessui/react": "^1.7.0",
2930
"@radix-ui/react-context-menu": "^2.1.5",
30-
"@types/mdast": "^4.0.4",
3131
"body-scroll-lock": "^3.1.3",
3232
"classnames": "^2.2.6",
3333
"date-fns": "^2.16.1",
3434
"debounce": "^1.2.1",
3535
"github-slugger": "^1.3.0",
36-
"next": "^15.2.0-canary.33",
36+
"next": "15.1.0",
3737
"next-remote-watch": "^1.0.0",
3838
"parse-numeric-range": "^1.2.0",
3939
"react": "^19.0.0",
4040
"react-collapsed": "4.0.4",
4141
"react-dom": "^19.0.0",
4242
"remark-frontmatter": "^4.0.1",
43-
"remark-gfm": "^3.0.1",
44-
"unist-builder": "^4.0.0"
43+
"remark-gfm": "^3.0.1"
4544
},
4645
"devDependencies": {
4746
"@babel/core": "^7.12.9",
@@ -63,7 +62,6 @@
6362
"autoprefixer": "^10.4.2",
6463
"babel-eslint": "10.x",
6564
"babel-plugin-react-compiler": "19.0.0-beta-e552027-20250112",
66-
"chokidar": "^4.0.3",
6765
"eslint": "7.x",
6866
"eslint-config-next": "12.0.3",
6967
"eslint-config-react-app": "^5.2.1",

scripts/generateRss.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*/
4+
const {generateRssFeed} = require('../src/utils/rss');
5+
6+
generateRssFeed();

src/app/[[...markdownPath]]/page.tsx

-172
This file was deleted.

src/app/errors/[[...errorCode]]/page.tsx

-118
This file was deleted.

0 commit comments

Comments
 (0)