diff --git a/beta/next.config.js b/beta/next.config.js index 169273de6..2ea3e916e 100644 --- a/beta/next.config.js +++ b/beta/next.config.js @@ -17,9 +17,6 @@ const nextConfig = { env: { SANDPACK_BARE_COMPONENTS: process.env.SANDPACK_BARE_COMPONENTS, }, - async redirects() { - return []; - }, webpack: (config, {dev, isServer, ...options}) => { if (process.env.ANALYZE) { const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer'); diff --git a/beta/vercel.json b/beta/vercel.json index 1ce0038eb..29e9acee4 100644 --- a/beta/vercel.json +++ b/beta/vercel.json @@ -4,6 +4,11 @@ }, "trailingSlash": false, "redirects": [ + { + "source": "/:path*(\\.html)", + "destination": "https://legacy.reactjs.org/:path*.html", + "permanent": false + }, { "source": "/tips/controlled-input-null-value.html", "destination": "/docs/forms.html#controlled-input-null-value",