Skip to content

Commit

Permalink
chore: try to add cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Oct 23, 2024
1 parent 803b35d commit 9af652e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM node:22 as builder

ARG CDN_URL
ENV PUBLIC_CDN_URL=$CDN_URL

WORKDIR /usr/src/app

RUN npm i -g bun
Expand Down
3 changes: 3 additions & 0 deletions apps/frontend/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const config = {
pages: "dist",
fallback: "index.html",
}),
paths: {
assets: import.meta.env.PUBLIC_CDN_URL || "",
},
env: {
publicPrefix: "UNDB_PUBLIC_",
},
Expand Down

0 comments on commit 9af652e

Please sign in to comment.