Error with SWR when deploying Next.js to Netlify

Hi Hillary!

I came across this post, which seems to have solved it.

Adding the following text to netlify.toml did the trick for me as well;

[build.environment]
NODE_VERSION = "14"

Thanks!

1 Like