提交 6f9c3aa8 编写于 作者: J JJ Kasper 提交者: Tim Neutkens

Remove experimental amp config (#7046)

This just removes the need for setting the experimental amp option
上级 c48340cd
......@@ -22,7 +22,6 @@ const defaultConfig = {
pagesBufferLength: 2
},
experimental: {
amp: false,
cpus: Math.max(
1,
(Number(process.env.CIRCLE_NODE_TOTAL) ||
......
......@@ -59,9 +59,6 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
'next/router': 'next/dist/client/router.js',
'next/config': 'next-server/dist/lib/runtime-config.js',
'next/dynamic': 'next-server/dist/lib/dynamic.js',
...(config.experimental.amp ? {} : {
'next/amp': 'you-must-enable-experimental-amp',
}),
next: NEXT_PROJECT_ROOT,
[PAGES_DIR_ALIAS]: path.join(dir, 'pages'),
[DOT_NEXT_ALIAS]: distDir,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册