Commit 6f9c3aa8 authored by JJ Kasper's avatar JJ Kasper Committed by Tim Neutkens

Remove experimental amp config (#7046)

This just removes the need for setting the experimental amp option
parent c48340cd
...@@ -22,7 +22,6 @@ const defaultConfig = { ...@@ -22,7 +22,6 @@ const defaultConfig = {
pagesBufferLength: 2 pagesBufferLength: 2
}, },
experimental: { experimental: {
amp: false,
cpus: Math.max( cpus: Math.max(
1, 1,
(Number(process.env.CIRCLE_NODE_TOTAL) || (Number(process.env.CIRCLE_NODE_TOTAL) ||
......
...@@ -59,9 +59,6 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug = ...@@ -59,9 +59,6 @@ export default function getBaseWebpackConfig (dir: string, {dev = false, debug =
'next/router': 'next/dist/client/router.js', 'next/router': 'next/dist/client/router.js',
'next/config': 'next-server/dist/lib/runtime-config.js', 'next/config': 'next-server/dist/lib/runtime-config.js',
'next/dynamic': 'next-server/dist/lib/dynamic.js', 'next/dynamic': 'next-server/dist/lib/dynamic.js',
...(config.experimental.amp ? {} : {
'next/amp': 'you-must-enable-experimental-amp',
}),
next: NEXT_PROJECT_ROOT, next: NEXT_PROJECT_ROOT,
[PAGES_DIR_ALIAS]: path.join(dir, 'pages'), [PAGES_DIR_ALIAS]: path.join(dir, 'pages'),
[DOT_NEXT_ALIAS]: distDir, [DOT_NEXT_ALIAS]: distDir,
......
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