-
-
Notifications
You must be signed in to change notification settings - Fork 599
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
How to Use CDN Url for Static Assets When Deploying with SSR? #2281
Comments
I transferred this issue into the main repo because it's not related to leptos/integrations/utils/src/lib.rs Lines 53 to 59 in d4bdc36
leptos/integrations/utils/src/lib.rs Lines 103 to 111 in d4bdc36
Any interest in making a PR? |
I decided to pick up this because it should be a short and sweet PR. Just to clarify though, the env var should be checked at compile time? |
When deploying using SSR, I would like to specify an absolute path for all static client-side assets, including the initial client-side java-script file and wasm file. This will allow using a CDN for static assets. Currently, I have not found a way to alter the relative paths for static assets; a preceding slash
/
is always added. I'm using the start-aws template. Is there a way to accomplish this?The text was updated successfully, but these errors were encountered: