Clarify STORAGE_FORCE_PATH_STYLE env behavior

This commit is contained in:
ohmwraith
2026-04-24 22:53:10 +03:00
committed by Rory&
parent 50c7da9872
commit b773b0025a
+1 -1
View File
@@ -86,7 +86,7 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
const forcePathStyle = process.env.STORAGE_FORCE_PATH_STYLE === "true";
if (process.env.STORAGE_FORCE_PATH_STYLE === undefined) {
console.warn(`[CDN] STORAGE_FORCE_PATH_STYLE unconfigured for S3 provider, defaulting to use virtual-hosted style...`);
console.warn(`[CDN] STORAGE_FORCE_PATH_STYLE is not set for S3 provider; defaulting to virtual-hosted style. Set STORAGE_FORCE_PATH_STYLE=true to enable path-style addressing.`);
}
const { S3Storage } = require("./S3Storage");