first version which seems to run
This commit is contained in:
@@ -7,12 +7,16 @@ const isStatic = process.env.EXPORT_MODE === "static";
|
||||
const basePath = process.env.NEXT_PUBLIC_BASE_PATH;
|
||||
const assetPrefix = process.env.NEXT_PUBLIC_ASSET_PREFIX || basePath;
|
||||
|
||||
const isDocker = process.env.DOCKER_BUILD === "true";
|
||||
|
||||
const extraConfig = {};
|
||||
|
||||
if (isStatic) {
|
||||
extraConfig.output = "export";
|
||||
extraConfig.trailingSlash = true;
|
||||
extraConfig.skipTrailingSlashRedirect = true;
|
||||
} else if (isDocker) {
|
||||
extraConfig.output = "standalone";
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user