mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 18:14:51 +00:00
Update the Next.js configuration for v14
This commit is contained in:
@@ -31,13 +31,16 @@ function getConfigParserSettings({ staticSiteGenerator, generatorConfigFile, sit
|
||||
configurationFile: generatorConfigFile || './next.config.js',
|
||||
blankConfigurationFile: `${__dirname}/blank-configurations/next.js`,
|
||||
properties: {
|
||||
// Static export
|
||||
// https://nextjs.org/docs/app/building-your-application/deploying/static-exports#version-history
|
||||
output: 'export',
|
||||
|
||||
// Configure a base path
|
||||
// https://nextjs.org/docs/app/api-reference/next-config-js/basePath
|
||||
basePath: path,
|
||||
|
||||
// Disable server side image optimization too
|
||||
// https://nextjs.org/docs/api-reference/next/image#unoptimized
|
||||
'experimental.images.unoptimized': true,
|
||||
// No longer experimental as of Next.js v12.3.0
|
||||
'images.unoptimized': true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user