#Proxy assets files

5 messages · Page 1 of 1 (latest)

ebon sphinx
#

Is there a way I can proxy static files?

My build generates a file like this:
/dist/client/_astro/portfolio.hash.js

On production, when requesting this file, I would like to get this file from a different server, is there a way to accomplish this?

I have tried using vite renderBuiltUrl prop, pointing my file for a different server, but Astro still loads it from the server where it got generated.

dreamy thistle
ebon sphinx
#

First, thanks so much for trying to help me, I really appreciate it 🙏

This option allows me have a URL for the assets.

On my case, I want to do it for specific files only, not for all my files.

dreamy thistle
#

Ah I misunderstood, it's not possible to configure that per file unfortunately but feel free suggest that feature in #feedback-ideas, or a new discussion in the roadmap repo!