about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJaz Volpert <ericvolp12@gmail.com>2024-10-04 13:40:45 -0700
committerJaz Volpert <ericvolp12@gmail.com>2024-10-04 13:40:45 -0700
commitb0fe2c6c9af9a243b287b76371f2359af9942cba (patch)
tree0ea9290cd11dc0d8529586383f1fbfca92ac95d3 /scripts
parent6382fe45356a1fd8696f7fa62a2d140fc833ac8a (diff)
downloadvoidsky-b0fe2c6c9af9a243b287b76371f2359af9942cba.tar.zst
Serve static assets from a CDN host if provided
Diffstat (limited to 'scripts')
-rw-r--r--scripts/post-web-build.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/post-web-build.js b/scripts/post-web-build.js
index 7bbee3855..5619b251b 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 ''