Replies: 2 comments
-
We also need this feature, and this configuration form is also good. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Completed in withastro/astro#10189 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
Summary
I want to use different cdn url prefix with static file, like image, js, css.. But astro now not support.
Background & Motivation
I want to config different cdn url prefix with static file in my project. But not support.
So my project image manual upload, css configured as
build.inlineStylesheets = 'always'
, only js files use the configured cdn address.We have discussed it in this issues: withastro/astro#9700 (comment)
Goals
A concise, bulleted-list outlining the intended goals of this RFC.
Support multiple cdn url prefix for static file.
I only use my current config, image manual upload, css configured as
build.inlineStylesheets = 'always'
, only js files use the configured cdn address.Example
If the proposal involves a new or changed API, then include a basic code example.
Otherwise, omit this section if it's not applicable.
Use
build. assetsPrefix
option, current assetsPrefix is string type. Add function type.fileType
type is string, value is file extension. Function return is string type.Beta Was this translation helpful? Give feedback.
All reactions