I keep getting a 404 error when trying to deploy my Next.js site via the netlify cli. Here are my netlify.toml, next.config.js, and package.json files.
next.config.js:
module.exports = {
output: ‘standalone’,
};
netlify.toml:
[[plugins]]
package = “@netlify/plugin-nextjs”
[build]
command = “next build”
publish = “.next/standalone”
package.json:
{
“name”: “chatext-template”,
“version”: “0.1.0”,
“description”: “chatext Landing Page Template”,
“private”: true,
“scripts”: {
“dev”: “next dev”,
“build”: “next build”,
“start”: “next start”
},
“repository”: {
“type”: “git”,
“url”: “https://gituhb.com/web3templates/chatext-template”
},
“keywords”: [
“nextjs”,
“tailwindcss”,
“free”
],
“author”: “Surjith S M”,
“license”: “ISC”,
“dependencies”: {
“@emotion/css”: “^11.10.6”,
“@emotion/react”: “^11.10.6”,
“@emotion/server”: “^11.10.0”,
“@emotion/styled”: “^11.10.6”,
“@headlessui/react”: “^1.7.14”,
“@heroicons/react”: “^2.0.17”,
“@tailwindcss/aspect-ratio”: “^0.4.2”,
“next”: “^13.3.1”,
“next-themes”: “^0.2.1”,
“react”: “^18”,
“react-dom”: “^18”,
“react-hook-form”: “^7.43.9”
},
“devDependencies”: {
“autoprefixer”: “^10.4.14”,
“eslint-config-prettier”: “^8.8.0”,
“postcss”: “^8.4.23”,
“tailwindcss”: “^3.3.1”
}
}
My .next folder has a ‘server’ and ‘standalone’ folder. I also have an ‘out’ directory. I’d appreciate help with this, thank you.