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:
2026-01-07 20:57:12 -06:00
parent dd1ce186d2
commit 462b510e14
21 changed files with 123 additions and 45 deletions
+7 -1
View File
@@ -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