I created my first Next JS project with Tailwind and wanted to build it with "next build". Then it created a folder ".next", but there is not a single .html file.
I come from the Angular world and there it simply works with "ng build".
I'm on All Inkl for my projects and of course it can't read the Next JS files.
All files in my project are .js files
How can I make it run on my server like with Angular projects?
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
unoptimized: true,}
}
module.exports = nextConfig
I've tried everything Google and ChatGPT have suggested, but it just doesn't work.
I have solved the problem. The correct command is npm run build
. It worked immediately.