0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-13 22:11:20 -05:00
astro/packages
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
..
astro Add multiple cdn v2 (#10189) 2024-03-08 13:10:07 +00:00
astro-prism Use eslint-plugin-regexp (#9993) 2024-02-07 20:43:19 +08:00
astro-rss chore: use biome to sort imports - only test files (#10180) 2024-02-21 14:08:19 +00:00
create-astro [ci] release (#10362) 2024-03-07 19:53:37 -06:00
db [ci] release (#10362) 2024-03-07 19:53:37 -06:00
integrations Fix mdx test fail with rehype-pretty-code (#10370) 2024-03-08 20:39:15 +08:00
internal-helpers Add multiple cdn v2 (#10189) 2024-03-08 13:10:07 +00:00
markdown/remark [ci] format 2024-03-08 13:04:14 +00:00
telemetry chore: import sort source code, exception for the astro package (#10242) 2024-02-27 11:15:27 +00:00
underscore-redirects chore: import sort source code, exception for the astro package (#10242) 2024-02-27 11:15:27 +00:00
upgrade chore: import sort source code, exception for the astro package (#10242) 2024-02-27 11:15:27 +00:00