mirror of
https://github.com/Xevion/xevion.dev.git
synced 2026-01-31 02:26:38 -06:00
feat: add icon picker for tags with Iconify integration
- Add icon field to tag creation/update API and handlers - Install @iconify packages (json, types, utils) as production deps - Build IconPicker component for tag admin UI - Fix apiFetch lazy initialization for build-time safety - Update Docker to install production dependencies for SSR runtime
This commit is contained in:
+7
-1
@@ -63,7 +63,8 @@ COPY migrations/ ./migrations/
|
||||
COPY --from=frontend /build/build/client ./web/build/client
|
||||
COPY --from=frontend /build/build/prerendered ./web/build/prerendered
|
||||
|
||||
# Build with real assets
|
||||
# Build with real assets (use sqlx offline mode)
|
||||
ENV SQLX_OFFLINE=true
|
||||
RUN cargo build --release && \
|
||||
strip target/release/api
|
||||
|
||||
@@ -83,6 +84,11 @@ COPY --from=frontend /build/build/client ./web/build/client
|
||||
COPY --from=frontend /build/build/*.js ./web/build/
|
||||
COPY web/console-logger.js ./web/
|
||||
|
||||
# Install production dependencies for SSR runtime
|
||||
COPY web/package.json web/bun.lock ./web/
|
||||
RUN cd web && bun install --frozen-lockfile --production && \
|
||||
ln -s /app/web/node_modules /app/web/build/node_modules
|
||||
|
||||
# Create inline entrypoint script
|
||||
RUN cat > /entrypoint.sh << 'EOF'
|
||||
#!/bin/sh
|
||||
|
||||
Reference in New Issue
Block a user