Hi all,
I’m trying to serve static assets (CSS, JS, images, etc.) for my OutSystems application through a CDN. Here's what I've done so far:
Created an S3 bucket to host static files.
Set up an Amazon CloudFront distribution pointing to the S3 bucket.
Configured the origin domain in CloudFront to route through my app’s domain (via load balancer).
However, I’m unsure where in OutSystems I should configure the CDN base URL so that all static resources generated at build time (like stylesheets, scripts, and images) are served from the CDN instead of the default OutSystems path.
Is there a specific setting in Service Center or LifeTime to define the CDN base path? Or do I need to handle this differently within the app modules?
Any guidance or documentation links would be greatly appreciated.
Note: I'm currently in OutSystems Platform server version 11.30
Thanks in advance!
Hi @Jayandhan Rajasundaram
Refer below link
https://www.outsystems.com/forums/discussion/90000/how-to-add-cdn/
https://www.outsystems.com/ideas/13539/load-dynamic-cdns-or-script-files-inside-reactive-web-app/
https://success.outsystems.com/documentation/11/setup_outsystems_infrastructure_and_platform/setting_up_outsystems/using_a_cdn_with_outsystems/
Thanks
@Pawan Parmar,
I’ve gone through forum threads you have linked in your reply, but I haven’t come across a centralized configuration option to set the CDN URL as the base path for all static assets. From what I understand, it seems like each asset might need to be handled individually — or am I missing something here?
Any clarification or guidance would be appreciated!
There does not seem to be any built-in configuration in Service Center / LifeTime where you can just set a “CDN base URL” and have all Outsystems static resources automatically rewritten to that CDN domain.
If you control the static assets yourself then:
This is a manual approach for each asset reference.