Setting base: in the generate: {} object

mvaneijgen
0
mvaneijgen
commented 6 months ago

I am building an app to host on Github Pages so I changed my generate object in nux.config.js to

generate: {
    dir: 'docs',
    router: {
      base: '/<repo-name>/',
    },
  }

but it seems not possible to change the router with this when running npm run generate. What would be the correct way if setting this?

I still want to use npm run dev and have the app just run locally (localhost:3000) and use npm run generate and host it on Github Pages.

0
Informations
Question โ€ข Unresolved
#c5 - Created 6 months ago