mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 09:49:25 +08:00
chore: fix load env and treeshaking for vinext (#32928)
This commit is contained in:
@@ -22,7 +22,7 @@ export function proxy(request: NextRequest) {
|
||||
},
|
||||
})
|
||||
|
||||
const isWhiteListEnabled = !!env.NEXT_PUBLIC_CSP_WHITELIST && env.NODE_ENV === 'production'
|
||||
const isWhiteListEnabled = !!env.NEXT_PUBLIC_CSP_WHITELIST && process.env.NODE_ENV === 'production'
|
||||
if (!isWhiteListEnabled)
|
||||
return wrapResponseWithXFrameOptions(response, pathname)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user