mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Redirect .html paths to legacy site
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user