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 static build when out dir is not within the cwd #9378

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

jacobp100
Copy link
Contributor

@jacobp100 jacobp100 commented Dec 8, 2023

Changes

We had an issue where some styles were not loading in the static build. We managed to pinpoint it to this - and noticed clientBuild calls this function on config.outDir - but the mutations don't. I'm not 100% sure this is the correct fix, but it certainly fixed it for us

Testing

Local testing & repo tests

Docs

Fixes static builds when config.outDir is located outside of the astro project

Copy link

changeset-bot bot commented Dec 8, 2023

⚠️ No Changeset found

Latest commit: 13a8f4f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@github-actions github-actions bot added the pkg: astro Related to the core `astro` package (scope) label Dec 8, 2023
@matthewp
Copy link
Contributor

Fixes #9415

@matthewp matthewp merged commit 8c9fe00 into withastro:main Dec 13, 2023
13 checks passed
taktran added a commit to ag-grid/ag-grid that referenced this pull request Mar 5, 2024
* Add patch to use working directory when building static files, see Fix static build when out dir is not within the cwd withastro/astro#9378
  * See ag-grid/ag-charts#678
* Add patch to copy over dot files when running build outside of astro folder
  * See ag-grid/ag-charts@5384e86
@bluwy bluwy mentioned this pull request May 1, 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.

2 participants