Unverified Commit 19f3c4d7 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Unflag Dynamic Routing (#7663)

parent 5a1b32dc
...@@ -30,7 +30,6 @@ const defaultConfig: { [key: string]: any } = { ...@@ -30,7 +30,6 @@ const defaultConfig: { [key: string]: any } = {
(Number(process.env.CIRCLE_NODE_TOTAL) || (Number(process.env.CIRCLE_NODE_TOTAL) ||
(os.cpus() || { length: 1 }).length) - 1 (os.cpus() || { length: 1 }).length) - 1
), ),
dynamicRouting: false,
autoExport: false, autoExport: false,
ampBindInitData: false, ampBindInitData: false,
exportTrailingSlash: true, exportTrailingSlash: true,
......
...@@ -256,9 +256,7 @@ export default class Server { ...@@ -256,9 +256,7 @@ export default class Server {
} }
if (this.nextConfig.useFileSystemPublicRoutes) { if (this.nextConfig.useFileSystemPublicRoutes) {
this.dynamicRoutes = this.nextConfig.experimental.dynamicRouting this.dynamicRoutes = this.getDynamicRoutes()
? this.getDynamicRoutes()
: []
// It's very important to keep this route's param optional. // It's very important to keep this route's param optional.
// (but it should support as many params as needed, separated by '/') // (but it should support as many params as needed, separated by '/')
......
...@@ -95,7 +95,7 @@ export default class DevServer extends Server { ...@@ -95,7 +95,7 @@ export default class DevServer extends Server {
} }
async startWatcher () { async startWatcher () {
if (this.webpackWatcher || !this.nextConfig.experimental.dynamicRouting) { if (this.webpackWatcher) {
return return
} }
......
module.exports = { module.exports = {
target: 'serverless', target: 'serverless',
experimental: { experimental: {
autoExport: true, autoExport: true
dynamicRouting: true
} }
} }
module.exports = { module.exports = {
experimental: { experimental: {
autoExport: true, autoExport: true
dynamicRouting: true
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment