mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 02:26:38 -06:00
fix: use Vite-imported fonts for OG image generation instead of node_modules fs reads
Fixes OG image generation in production Docker deployments by using SvelteKit's read() with Vite-imported font URLs instead of runtime fs reads from node_modules. Also copies client assets to Docker image for availability.
This commit is contained in:
+2
-1
@@ -77,8 +77,9 @@ RUN apk add --no-cache ca-certificates tzdata
|
||||
# Copy Rust binary
|
||||
COPY --from=final-builder /build/target/release/api ./api
|
||||
|
||||
# Copy Bun SSR server
|
||||
# Copy Bun SSR server and client assets (including fonts for OG images)
|
||||
COPY --from=frontend /build/build/server ./web/build/server
|
||||
COPY --from=frontend /build/build/client ./web/build/client
|
||||
COPY --from=frontend /build/build/*.js ./web/build/
|
||||
COPY web/console-logger.js ./web/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user