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

Revert "fix custom assetFileNames issue (#12449)" #12746

Merged
merged 2 commits into from
Dec 16, 2024
Merged

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented Dec 16, 2024

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.


Reverting because the old logic was flawed in that it assumed that everything that gets put into the assets folder comes from inside of the vite build and is an "asset" type, but that's not true for sourcemaps. What other sorts of files might be created during the build that we are not cleaning?

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.
Copy link

changeset-bot bot commented Dec 16, 2024

⚠️ No Changeset found

Latest commit: 4477693

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 16, 2024
@matthewp
Copy link
Contributor Author

!preview sm-assets

Copy link

codspeed-hq bot commented Dec 16, 2024

CodSpeed Performance Report

Merging #12746 will not alter performance

Comparing assets-sourcemap (3a76a48) with main (25c1e59)

Summary

✅ 4 untouched benchmarks

@matthewp matthewp merged commit c879f50 into main Dec 16, 2024
16 checks passed
@matthewp matthewp deleted the assets-sourcemap branch December 16, 2024 17:01
@astrobot-houston astrobot-houston mentioned this pull request Dec 16, 2024
matthewp added a commit that referenced this pull request Dec 16, 2024
* Revert "fix custom `assetFileNames` issue (#12449)"

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.

* Add changeset
matthewp added a commit that referenced this pull request Dec 16, 2024
* Revert "fix custom `assetFileNames` issue (#12449)"

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.

* Add changeset
ematipico pushed a commit that referenced this pull request Dec 18, 2024
* Revert "fix custom `assetFileNames` issue (#12449)" (#12746)

* Revert "fix custom `assetFileNames` issue (#12449)"

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.

* Add changeset

* Clean sourcemaps from static output (#12749)

* Clean sourcemaps from static output

* Add changeset

* Update test to look at frontend sourcemaps

* Revert "fix custom `assetFileNames` issue (#12449)" (#12746)

* Revert "fix custom `assetFileNames` issue (#12449)"

This reverts commit e6b8017.

This change caused source maps to be left in the client folder, exposing them into the server.

* Add changeset

* Clean sourcemaps from static output (#12749)

* Clean sourcemaps from static output

* Add changeset

* Update test to look at frontend sourcemaps

* [ci] format

* fix build

* Skip experimental cc tests

* remove unused params
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