module . exports = { experimental : { conformance : true , optimizeCss : true , optimizeImages : true , workerThreads : true , } , async headers ( ) { return [ { source : "/(.*)" , headers : [ { key : "Access-Control-Allow-Credentials" , value : "true" , } , { key : "Access-Control-Allow-Origin" , value : "*" , } , { key : "Access-Control-Allow-Methods" , value : "GET,OPTIONS,PATCH,DELETE,POST,PUT" , } , { key : "Access-Control-Allow-Headers" , value : `X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version` , } , { key : "Cache-Control" , value : "public, s-maxage=1, stale-while-revalidate=59" , } , { key : "Permissions-Policy" , value : "camera=(), microphone=(), geolocation=(), interest-cohort=()" , } , { key : "Referrer-Policy" , value : "origin-when-cross-origin" , } , { key : "Strict-Transport-Security" , value : "max-age=31536000; includeSubDomains; preload" , } , { key : "X-Frame-Options" , value : "DENY" , } , { key : "X-Content-Type-Options" , value : "nosniff" , } , { key : "X-DNS-Prefetch-Control" , value : "on" , } , ] , } , ] ; } , i18n : { defaultLocale : "id" , locales : [ "en" , "id" ] , } , reactStrictMode : true , param { import ( "webpack" ) . Configuration } config param { { dev : boolean ; isServer : boolean } } opts webpack ( config , { dev , isServer , webpack } ) { config . plugins . push ( new webpack . DefinePlugin ( { __DEV__ : dev } ) ) ; if ( ! dev && ! isServer ) { Object . assign ( config . resolve . alias , { react : "preact/compat" , "react-dom/test-utils" : "preact/test-utils" , "react-dom" : "preact/compat" , } ) ; } return config ; } , } ;