This commit is contained in:
Yoann Chaudet
2022-07-19 16:27:57 -07:00
parent 69fea3d62e
commit 53eec1a8cc
13 changed files with 13 additions and 54 deletions

5
dist/index.js vendored
View File

@@ -14831,6 +14831,11 @@ function getConfigParserSettings(staticSiteGenerator, path) {
blankConfigurationFile: __nccwpck_require__.ab + "nuxt.js"
}
case 'next':
// Next does not want a trailing slash
if (path.endsWith('/')) {
path = path.slice(0, -1)
}
return {
configurationFile: './next.config.js',
propertyName: 'basePath',

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
pathPrefix: '/prefix' /* test */
}

View File

@@ -1,3 +0,0 @@
module.exports = {
pathPrefix: '/prefix'
}

View File

@@ -1,8 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
basePath: '/gh-pages-test' /* test */
}

View File

@@ -1,3 +0,0 @@
module.exports = {
basePath: '/gh-pages-test' /* test */
}

View File

@@ -1 +0,0 @@
module.exports = {}

View File

@@ -1,3 +1,3 @@
// Default Pages configuration for Next
const nextConfig = { basePath: "/docs/" }
const nextConfig = { basePath: "/docs" }
module.exports = nextConfig

View File

@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: "/docs/",
basePath: "/docs",
reactStrictMode: true,
swcMinify: true,
}

View File

@@ -1,11 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
target: 'static',
router: {
base: 'some/path'
}
}

View File

@@ -1,8 +0,0 @@
import {resolve} from 'path'
export default {
alias: {
style: resolve(__dirname, './assets/style')
},
target: 'static'
}

View File

@@ -1,9 +0,0 @@
module.exports = {
alias: {
style: resolve(__dirname, './assets/style')
},
target: 'static',
router: {
base: 'some/path'
}
}

View File

@@ -13,6 +13,11 @@ function getConfigParserSettings(staticSiteGenerator, path) {
blankConfigurationFile: `${__dirname}/blank-configurations/nuxt.js`
}
case 'next':
// Next does not want a trailing slash
if (path.endsWith('/')) {
path = path.slice(0, -1)
}
return {
configurationFile: './next.config.js',
propertyName: 'basePath',