From 084dc5123dd9c581be8a10b0054accde194d589d Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Tue, 19 Jul 2022 17:15:09 -0700 Subject: [PATCH] experimental --- dist/index.js | 2 +- src/fixtures/next/blank.expected.js | 5 ++++- src/fixtures/next/default.expected.js | 8 ++++---- src/set-pages-path.js | 2 +- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dist/index.js b/dist/index.js index 90b629f..b111f80 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14850,7 +14850,7 @@ function getConfigParserSettings(staticSiteGenerator, path) { blankConfigurationFile: __nccwpck_require__.ab + "next.js", properties: { basePath: path, - 'images.unoptimized': true + 'experimental.images.unoptimized': true } } case 'gatsby': diff --git a/src/fixtures/next/blank.expected.js b/src/fixtures/next/blank.expected.js index 787124e..fe69e40 100644 --- a/src/fixtures/next/blank.expected.js +++ b/src/fixtures/next/blank.expected.js @@ -1,3 +1,6 @@ // Default Pages configuration for Next -const nextConfig = {images: {unoptimized: true}, basePath: '/docs'} +const nextConfig = { + experimental: {images: {unoptimized: true}}, + basePath: '/docs' +} module.exports = nextConfig diff --git a/src/fixtures/next/default.expected.js b/src/fixtures/next/default.expected.js index d2adff3..de677b8 100644 --- a/src/fixtures/next/default.expected.js +++ b/src/fixtures/next/default.expected.js @@ -1,9 +1,9 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - images: {unoptimized: true}, - basePath: "/docs", + experimental: {images: {unoptimized: true}}, + basePath: '/docs', reactStrictMode: true, - swcMinify: true, + swcMinify: true } -module.exports = nextConfig \ No newline at end of file +module.exports = nextConfig diff --git a/src/set-pages-path.js b/src/set-pages-path.js index 56d04a8..1e477bc 100644 --- a/src/set-pages-path.js +++ b/src/set-pages-path.js @@ -24,7 +24,7 @@ function getConfigParserSettings(staticSiteGenerator, path) { blankConfigurationFile: `${__dirname}/blank-configurations/next.js`, properties: { basePath: path, - 'images.unoptimized': true + 'experimental.images.unoptimized': true } } case 'gatsby':