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

fix: merge userConfig inside getViteConfig #11194

Merged
merged 1 commit into from
Jun 6, 2024
Merged

fix: merge userConfig inside getViteConfig #11194

merged 1 commit into from
Jun 6, 2024

Conversation

ematipico
Copy link
Member

Changes

Closes #11175

The were a bug where we were merging inlineConfig and userConfig, but at end we were not using the merged config anymore other than creating the AstroConfig.

That AstroConfig is used to create AstroSettings, but when returning the vite config, we only use inlineConfig. Instead, we should use the merged configuration mentioned before.

Testing

Tested it against reproduction, it now returns the correct URL.

Docs

N/A

Copy link

changeset-bot bot commented Jun 6, 2024

🦋 Changeset detected

Latest commit: adecd9b

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

changeset-bot bot commented Jun 6, 2024

🦋 Changeset detected

Latest commit: 05fbf4a

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added pkg: astro Related to the core `astro` package (scope) labels Jun 6, 2024
@ematipico ematipico merged commit 97fbe93 into main Jun 6, 2024
13 checks passed
@ematipico ematipico deleted the fix/vite-config branch June 6, 2024 13:22
@astrobot-houston astrobot-houston mentioned this pull request Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: astro Related to the core `astro` package (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

i18n getAbsoluteLocaleUrl only respect parts of the astro.config.mjs config in vite tests
2 participants