const bundleAnalyzer = require ( '@next/bundle-analyzer' ) ( { enabled : ! ! process . env . BUNDLE_ANALYZE , } ) ; module . exports = bundleAnalyzer ( { target : 'serverless' , images : { domains : [ 'res.cloudinary.com' , 'cdn.shopify.com' , 'cdn.builder.io' , 'via.placeholder.com' ] , } , async headers ( ) { return [ { source : '/:path*' , headers : [ { key : 'Content-Security-Policy' , value : 'frame-ancestors https://*.builder.io https://builder.io http://localhost:1234' , } , ] , } , ] ; } , env : { SHOPIFY_STOREFRONT_API_TOKEN : process . env . SHOPIFY_STOREFRONT_API_TOKEN , SHOPIFY_STORE_DOMAIN : process . env . SHOPIFY_STORE_DOMAIN , BUILDER_PUBLIC_KEY : process . env . BUILDER_PUBLIC_KEY , IS_DEMO : process . env . IS_DEMO , } , i18n : { locales : [ 'en-US' ] , defaultLocale : 'en-US' , } , } ) ;