diff --git a/docs/next.config.js b/docs/next.config.js index 503ac9ad6a853..5bb567b22c434 100644 --- a/docs/next.config.js +++ b/docs/next.config.js @@ -151,6 +151,7 @@ module.exports = { { source: '/api/:rest*', destination: '/api-docs/:rest*' }, ]; }, + // redirects only take effect in the development, not production (because of `next export`). redirects: async () => { const redirects = []; if (process.env.NODE_ENV !== 'production') {