fix(stage): route blog revalidation to Next and omit unrelated article media
Deploy Canina / deploy (push) Successful in 3m16s
Deploy Canina / deploy (push) Successful in 3m16s
This commit is contained in:
1 parent
85ef01d337
commit
55d11fa597
8 files changed
+106
-15
No files matched your search
@@ -0,0 +1,19 @@
|
||||
# Stage-only storefront repair; retain the deployed admin and nginx artifacts.
|
||||
ARG STAGE_BASE_IMAGE
|
||||
FROM node:20-alpine AS app-builder
|
||||
WORKDIR /app
|
||||
ARG NPM_REGISTRY=https://registry.parsaaghayi.ir/repository/npm/
|
||||
RUN npm config set registry "$NPM_REGISTRY" && npm config set strict-ssl false
|
||||
COPY frontend/application/package*.json ./
|
||||
RUN npm ci --include=dev --prefer-offline --no-audit
|
||||
COPY frontend/application ./
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NEXT_PUBLIC_API_URL=https://stageapi.canina.ir/api
|
||||
ENV NEXT_PUBLIC_SITE_URL=https://stage.canina.ir
|
||||
ENV NEXT_PUBLIC_APP_ENV=staging
|
||||
RUN npm run build
|
||||
FROM ${STAGE_BASE_IMAGE}
|
||||
WORKDIR /app
|
||||
COPY --from=app-builder /app ./
|
||||
ENV NEXT_PUBLIC_SITE_URL=https://stage.canina.ir
|
||||
ENV NEXT_PUBLIC_APP_ENV=staging
|
||||
Reference in new issue
Block a user