Open dhavalveera opened 1 year ago
I experience the same problem with another library, called next-translate, which also wraps the config with a function. The linbrary doesnt worky properly anymore with 5.6.0
Edit: I just found out that they changed the way the function works in a minor version... Now you need to use it like this:
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV !== 'production',
runtimeCaching,
})
I think you should use NEXT_PUBLIC_SERVER_URL instead of SERVER_URL
Hello,
below is my
next.config.js
file:when I'm running the Nextjs app using
npm run dev
wherever I'm usingprocess.env.SERVER_URL
=> this env variable is returning undefined, and due to this my page breaking and if I remove thewithPWA
then everything is working fine.please help me