mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 08:06:09 +00:00
fix next
This commit is contained in:
5
dist/index.js
vendored
5
dist/index.js
vendored
@@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1,8 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
pathPrefix: '/prefix' /* test */
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
pathPrefix: '/prefix'
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
basePath: '/gh-pages-test' /* test */
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
module.exports = {
|
||||
basePath: '/gh-pages-test' /* test */
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = {}
|
||||
@@ -1,3 +1,3 @@
|
||||
// Default Pages configuration for Next
|
||||
const nextConfig = { basePath: "/docs/" }
|
||||
const nextConfig = { basePath: "/docs" }
|
||||
module.exports = nextConfig
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
basePath: "/docs/",
|
||||
basePath: "/docs",
|
||||
reactStrictMode: true,
|
||||
swcMinify: true,
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
target: 'static',
|
||||
router: {
|
||||
base: 'some/path'
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import {resolve} from 'path'
|
||||
|
||||
export default {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
target: 'static'
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
module.exports = {
|
||||
alias: {
|
||||
style: resolve(__dirname, './assets/style')
|
||||
},
|
||||
target: 'static',
|
||||
router: {
|
||||
base: 'some/path'
|
||||
}
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user