Skip to content

Commit d9dd87c

Browse files
committed
Redirect .html paths to legacy site
1 parent 60d2937 commit d9dd87c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

beta/next.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ const nextConfig = {
1717
env: {
1818
SANDPACK_BARE_COMPONENTS: process.env.SANDPACK_BARE_COMPONENTS,
1919
},
20-
async redirects() {
21-
return [];
22-
},
2320
webpack: (config, {dev, isServer, ...options}) => {
2421
if (process.env.ANALYZE) {
2522
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');

beta/vercel.json

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
},
55
"trailingSlash": false,
66
"redirects": [
7+
{
8+
"source": "/:path*(\\.html)",
9+
"destination": "https://legacy.reactjs.org/:path*.html",
10+
"permanent": false
11+
},
712
{
813
"source": "/tips/controlled-input-null-value.html",
914
"destination": "/docs/forms.html#controlled-input-null-value",

0 commit comments

Comments
 (0)