Minimal reproduction for "nuxt generate" issues with static assets and router base
This is a minimal demo site that is served at domain root /
in dev mode but served under /demo
in production mode.
To download this repro, install npm dependencies, create and show the dysfunctional static build, run:
npx github:Loilo/repro-nuxt-static-base
Clone this repo and cd
to it:
git clone https://github.com/Loilo/repro-nuxt-static-base.git
cd repro-nuxt-static-base
Install npm dependencies:
npm install
For the (functional) dev experience, run
npm run dev
For the dysfunctional static site, run
npm run generate-and-serve