Browse Source

Redirect .html paths to legacy site

main
Dan Abramov 2 years ago
parent
commit
d9dd87ce20
  1. 3
      beta/next.config.js
  2. 5
      beta/vercel.json

3
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');

5
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",

Loading…
Cancel
Save