Static GitHub Issues

[2324] Nuxt generate with sub folders not serving properly when accessed from subfolder using python

prev: TypeError: Cannot assign to read only property 'name' of function 'function () { [native code] }'
next: Example for subpage directories + LD JSON

Hi there, I tried the nuxt generate command with nested routes example https://nuxtjs.org/examples/nested-routes . I mades sure the generate: { routes: ... } option correctly as mentioned here https://nuxtjs.org/api/configuration-generate#the-generate-property .

But when we try to run python -m SimpleHTTPServer under dist/1/ or dist/2/ I get missing assets. But when we run server from dist/ folder it works correctly.

Is it possible to customise this behaviour and directly run and serve from child folder dist/1/ etc. So that if we have multiple folders under dist directory, we can serve them on different domain like <user-id>.drivem7.com.

I looked at generator.js file here https://github.com/nuxt/nuxt.js/blob/dev/lib/builder/generator.js . Is it possible to have custom generation process. The documentation says that we can define hooks to nuxt generate but don't where to define them either in nuxt.config.js or under plugins folder, by creating a new file.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2028">#c2028</a>)</em></sub></div>