mirror of
https://github.com/Tony0410/nextstep.git
synced 2026-05-24 13:21:39 +08:00
Configure VAPID keys for push notifications
Added VAPID key configuration to enable PWA push notifications: - Generated VAPID public/private key pair - Added build arg for NEXT_PUBLIC_VAPID_PUBLIC_KEY (needed at Next.js build time) - Added runtime env vars for VAPID keys in docker-compose.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,10 @@ RUN npx prisma generate
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Build args for NEXT_PUBLIC_* variables (needed at build time)
|
||||
ARG NEXT_PUBLIC_VAPID_PUBLIC_KEY
|
||||
ENV NEXT_PUBLIC_VAPID_PUBLIC_KEY=${NEXT_PUBLIC_VAPID_PUBLIC_KEY}
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Stage 3: Runner (using slim Debian for better OpenSSL compatibility)
|
||||
|
||||
Reference in New Issue
Block a user