🔨 chore(config): add assetPrefix to nextConfig for environment variable support (#9427)

*  feat(config): add assetPrefix to nextConfig for environment variable support

*  feat(docs): add NEXT_PUBLIC_ASSET_PREFIX environment variable for CDN support
This commit is contained in:
peerless-hero
2025-09-26 02:57:18 +08:00
committed by GitHub
parent 1a443e8d8a
commit dd9bbdc362
3 changed files with 15 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ const standaloneConfig: NextConfig = {
const nextConfig: NextConfig = {
...(isStandaloneMode ? standaloneConfig : {}),
assetPrefix: process.env.NEXT_PUBLIC_ASSET_PREFIX,
compiler: {
emotion: true,
},