Zhang Zhipeng
|
1ea0a25b94
|
Add multiple cdn v2 (#10189)
* feat: add multiple cdn
* add multiple cdn test
* assetsPrefix not empty string
* add changeset
* simplify code
* change docs
* replace getFileExtension with node path.extname
* Adapt node extname
* multiple image test
* wip space
* update docs
* update docs, assetsPrefix type
* update docs
* update docs
* chore: update types and rename to `fallback`
* enhance changelog
* change docs
* update change defaultAeestsPrefix to fallback key test
* move utility to a new to avoid importing `node:path` inside vite plugins
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: address Bjorn's comments
* kill the variable
* kill the variable /2
* Fix CI fail
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* uniform code sample
* add `.` string for fit getAssetsPrefix
* Fix extension function
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
|
2024-03-08 13:10:07 +00:00 |
|