-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Vite config base
and experimental
is all not work
#9700
Comments
Hello @peng. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
It's possible that Astro's version of |
vite/5.0.10 darwin-arm64 node-v18.18.1, but vite
|
In what way does it not work? I guess the feature does work partially, but it's not taking effect on all files that you expected, hence it isn't working well. Astro also uses that config internally (but you can override it) with its assetsPrefix option, but it's opinionated that it applies to both JS and CSS files. But that option should also cover cases where it would fail if you only used |
Is |
Yeah there is not support for this. Astro only supports the prefix for both JS and CSS, and you can't choose between it. If you want to see support for it, you can open a discussion in https://github.com/withastro/roadmap. Closing this for now as it's not a bug. |
|
Astro Info
If this issue only occurs in one browser, which browser is a problem?
build
Describe the Bug
It possible not a bug.
I want to config two cdn url, js file is https://a.com/static prefix url, css file is https://b.com/static prefix url. I found vite has renderBuiltUrl mehthod.
But vite.experimental.renderBuiltUrl is not work.
Is support vite.experimental.renderBuiltUrl config ?
What's the expected result?
Js, css, ... file can use different cdn url
Link to Minimal Reproducible Example
https://github.com/peng/astro-demo/
Participation
The text was updated successfully, but these errors were encountered: