未验证 提交 19f3c4d7 编写于 作者: J Joe Haddad 提交者: GitHub

Unflag Dynamic Routing (#7663)

上级 5a1b32dc
......@@ -30,7 +30,6 @@ const defaultConfig: { [key: string]: any } = {
(Number(process.env.CIRCLE_NODE_TOTAL) ||
(os.cpus() || { length: 1 }).length) - 1
),
dynamicRouting: false,
autoExport: false,
ampBindInitData: false,
exportTrailingSlash: true,
......
......@@ -256,9 +256,7 @@ export default class Server {
}
if (this.nextConfig.useFileSystemPublicRoutes) {
this.dynamicRoutes = this.nextConfig.experimental.dynamicRouting
? this.getDynamicRoutes()
: []
this.dynamicRoutes = this.getDynamicRoutes()
// It's very important to keep this route's param optional.
// (but it should support as many params as needed, separated by '/')
......
......@@ -95,7 +95,7 @@ export default class DevServer extends Server {
}
async startWatcher () {
if (this.webpackWatcher || !this.nextConfig.experimental.dynamicRouting) {
if (this.webpackWatcher) {
return
}
......
module.exports = {
target: 'serverless',
experimental: {
autoExport: true,
dynamicRouting: true
autoExport: true
}
}
module.exports = {
experimental: {
autoExport: true,
dynamicRouting: true
autoExport: true
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册