Nextjs SPA mode (output: 'export' ) cannot find the text files it generates
Unanswered
Dutch posted this in #help-forum
DutchOP
My app could not find the txt file that the builder generates. See the screenshot below, which is a build that I generated then served via
Here's my config:
Any help or resources I could read to fix my issue? Thanks a bunch!
npx serve to replicate the issue I encounter on production.Here's my config:
const nextConfig = {
output: 'export',
distDir: 'dist',
// Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
trailingSlash: true,
// Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href`
skipTrailingSlashRedirect: true,
images: {
dangerouslyAllowSVG: true,
unoptimized: true,
},
}Any help or resources I could read to fix my issue? Thanks a bunch!