mirror of
https://github.com/actions/configure-pages.git
synced 2026-04-04 08:42:21 +00:00
Do a bit more configuration for nuxt, set server = 'static'
This commit is contained in:
@@ -10,7 +10,12 @@ function getConfigParserSettings(staticSiteGenerator, path) {
|
||||
configurationFile: './nuxt.config.js',
|
||||
blankConfigurationFile: `${__dirname}/blank-configurations/nuxt.js`,
|
||||
properties: {
|
||||
'router.base': path
|
||||
// Configure a base path on the router
|
||||
'router.base': path,
|
||||
|
||||
// Set the target to static too
|
||||
// https://nuxtjs.org/docs/configuration-glossary/configuration-target/
|
||||
server: 'static'
|
||||
}
|
||||
}
|
||||
case 'next':
|
||||
@@ -23,6 +28,7 @@ function getConfigParserSettings(staticSiteGenerator, path) {
|
||||
configurationFile: './next.config.js',
|
||||
blankConfigurationFile: `${__dirname}/blank-configurations/next.js`,
|
||||
properties: {
|
||||
// Configure a base path
|
||||
basePath: path,
|
||||
|
||||
// Disable server side image optimization too
|
||||
@@ -35,6 +41,7 @@ function getConfigParserSettings(staticSiteGenerator, path) {
|
||||
configurationFile: './gatsby-config.js',
|
||||
blankConfigurationFile: `${__dirname}/blank-configurations/gatsby.js`,
|
||||
properties: {
|
||||
// Configure a path prefix
|
||||
pathPrefix: path
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user