added comment flor nextjs configs

This commit is contained in:
Abhinav-grd 2021-09-07 17:21:49 +05:30
parent c38de745c9
commit a2b4bb1d3b

View file

@ -34,6 +34,7 @@ module.exports = withSentryConfig(
exclude: [/manifest\.json$/i], exclude: [/manifest\.json$/i],
}, },
// added to enabled shared Array buffer - https://web.dev/coop-coep/
headers() { headers() {
return [ return [
{ {
@ -43,6 +44,7 @@ module.exports = withSentryConfig(
}, },
]; ];
}, },
// https://dev.to/marcinwosinek/how-to-add-resolve-fallback-to-webpack-5-in-nextjs-10-i6j
webpack: (config, { isServer }) => { webpack: (config, { isServer }) => {
if (!isServer) { if (!isServer) {
config.resolve.fallback.fs = false; config.resolve.fallback.fs = false;