New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: Add sub directory
config in nuxt.config.js
#2021
Comments
Have you tried the Vue Router Base Property? module.exports = {
router: {
base: '/app/'
}
} |
I'm not sure if I understand you correctly, but maybe buildDir: './nuxt/blog' // default: './nuxt' |
@christophwolff @KonstantinVlasov But, It seems to be a little different from what I'm seeking. I need
nuxt generate result
Is it possible to add a path before |
I think publicPath can help you |
@KonstantinVlasov I am hosting another web site directly under the domain and
result: I need: |
see https://nuxtjs.org/faq/github-pages and also https://nuxtjs.org/api/configuration-build#publicpath That should resolve it for you. Closing. Reopen if still not clear. |
I think this proposal is valid and necessary, you not always want to publish in the root directory, publish path solve the problem but you need to change your image routes. with this helper you may decide where you want to publish (main domain or a folder) with just one config. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi, I maintain multiple Web sites with subdirectory structure created by Nuxt.
(e.g. https://push7.jp/docs )
Then, I have a problem with such a site.
Nuxt
build
andgenerate
are excellent, but they are always made to refer to the .nuxt directory for the root directory.I solve this by linking with a shell script etc, but it is not a good idea.
To solve this problem, I would like to add a function that can manage the target directory with the configuration called
subdirectory
as Nuxt's function.In particular, in Japan such a URL structure is very popular, so there are many opportunities to use.
If this proposal is allowed, I would like to implement it even soon!
Config sample
in nuxt.config.js
The text was updated successfully, but these errors were encountered: