Cannot deploy a basic nextjs static site

I am having trouble deploying my basic nextjs static site. I keep getting the error: “The “next export” command has been removed in favor of “output: export” in next.config.js. Learn more: Deploying: Static Exports | Next.js” even when my next.config.js looks like this:

/** @type {import('next').NextConfig} */
const nextConfig = {
	output: 'export',
};

module.exports = nextConfig;

I am just running a basic unedited version of the create-next-app on NODE_VERSION 18.17.0 and I don’t know what els can be the issue here.Preformatted text

Hey,

Are you able to bundle/build/start this app on your local device with Node 18.17.0? Is your next.config.js file located at the root of your repo?

Jérémy.
Render Support, UTC+3

I had a similar error. Just solved it by adding this to my package.json
Hope it helps!

  "engines": {
    "node": "^18.18.0"
  },

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.