Skip to content
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

configure whether dist symlink is created when generating #14361

Open
NozomuIkuta opened this issue Jul 24, 2022 · 1 comment
Open

configure whether dist symlink is created when generating #14361

NozomuIkuta opened this issue Jul 24, 2022 · 1 comment

Comments

@NozomuIkuta
Copy link
Contributor

Environment

It's not environment-specific issue (see below).

Reproduction

This bug can't be reproduced by demo, but it's degradation in nuxt.config.js.

Describe the bug

While it is configurable which directory Nuxt generate app into (i.e. generate.dir option in nuxt.config.js), it comes to be hard-corded and unconfigurable in Nuxt 3.

https://github.com/nuxt/framework/blob/873b0f0d043405b13da42f0d816f41c989bfddd5/packages/nuxt/src/core/nitro.ts#L163

Related: generate hooks are not implemented as well (#4698)

Additional context

N/A

Logs

N/A
@danielroe
Copy link
Member

If you want to configure the folder into which the generated files are placed, you can set it in nitro.output.publicDir.

The line you've mentioned adds a hard-coded symlink to that one (and IIRC, is really a workaround).

@danielroe danielroe changed the title generate.dir option is uncofigurable in Nuxt 3 configure whether dist symlink is created when generating Jul 25, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants