diff options
author | Jaz <ericvolp12@gmail.com> | 2024-10-04 14:39:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 14:39:43 -0700 |
commit | 6dfd57e6218eb32fcf700f1fbbd0339705940679 (patch) | |
tree | 3f32dbb86cbfd5143a3b6f1df95a30c131006895 /scripts/post-web-build.js | |
parent | 3fb14d184a84cb892c751338c9aea625f5767a47 (diff) | |
parent | 795e2c0629ad5d2d659b2dd6658cdd3f6ce071e0 (diff) | |
download | voidsky-6dfd57e6218eb32fcf700f1fbbd0339705940679.tar.zst |
Merge pull request #5610 from bluesky-social/static_asset_cdn
Serve static assets from a CDN host if provided
Diffstat (limited to 'scripts/post-web-build.js')
-rw-r--r-- | scripts/post-web-build.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/post-web-build.js b/scripts/post-web-build.js index 7bbee3855..3b1b62dfd 100644 --- a/scripts/post-web-build.js +++ b/scripts/post-web-build.js @@ -23,10 +23,10 @@ const outputFile = entrypoints const ext = path.extname(file) if (ext === '.js') { - return `<script defer="defer" src="/static/js/${file}"></script>` + return `<script defer="defer" src="{{ staticCDNHost }}/static/js/${file}"></script>` } if (ext === '.css') { - return `<link rel="stylesheet" href="/static/css/${file}">` + return `<link rel="stylesheet" href="{{ staticCDNHost }}/static/css/${file}">` } return '' |