From d9dd87ce203894a96657c71606de32984f1e5b8d Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 24 Jan 2023 04:31:49 +0000 Subject: [PATCH] Redirect .html paths to legacy site --- beta/next.config.js | 3 --- beta/vercel.json | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) 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",