fix(public): кнопка «Войти» вела на 410-Gone zat.kz
Some checks are pending
CI / POS (WPF, Windows) (push) Waiting to run
CI / Backend (.NET 8) (push) Successful in 1m2s
CI / Web (React + Vite) (push) Successful in 40s
Docker Public / Build + push Public (push) Successful in 26s
Docker Public / Deploy Public on stage (push) Successful in 10s
Some checks are pending
CI / POS (WPF, Windows) (push) Waiting to run
CI / Backend (.NET 8) (push) Successful in 1m2s
CI / Web (React + Vite) (push) Successful in 40s
Docker Public / Build + push Public (push) Successful in 26s
Docker Public / Deploy Public on stage (push) Successful in 10s
Bug: на test.food-market.kz href кнопки «Войти» показывал https://app.food-market.zat.kz/login → 410 Gone (старый stage-домен давно убран). Корни: — Header.astro имел дефолт PUBLIC_APP_URL = https://test.food-market.kz (после revert-коммита остался только public-домен, но Войти ведёт на админку — должно быть admin.food-market.kz). Поправил, теперь совпадает с SignupForm.tsx. — Dockerfile ARG PUBLIC_APP_URL тоже был test.food-market.kz — заменил на admin.food-market.kz. — Добавил .dockerignore (node_modules / dist / .astro / .env / .git) чтобы старый локальный dist/ не попадал в build-контекст и не застревал в layer cache. Раньше это давало stale бандл с app.food-market.zat.kz даже после изменений в src/. Build/deploy: docker build --no-cache + compose pull --force-recreate. Smoke на проде: - href Войти → https://admin.food-market.kz/login - Никаких .zat.kz упоминаний в /usr/share/nginx/html (grep пуст). - og:image → https://test.food-market.kz/og/home.png
This commit is contained in:
parent
0f59dfee69
commit
2a026c589c
6
src/food-market.public/.dockerignore
Normal file
6
src/food-market.public/.dockerignore
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
node_modules
|
||||||
|
.astro
|
||||||
|
dist
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.git
|
||||||
|
|
@ -11,7 +11,7 @@ COPY pnpm-lock.yaml* ./
|
||||||
RUN pnpm install --frozen-lockfile || pnpm install
|
RUN pnpm install --frozen-lockfile || pnpm install
|
||||||
COPY . .
|
COPY . .
|
||||||
ARG PUBLIC_SITE_URL=https://test.food-market.kz
|
ARG PUBLIC_SITE_URL=https://test.food-market.kz
|
||||||
ARG PUBLIC_APP_URL=https://test.food-market.kz
|
ARG PUBLIC_APP_URL=https://admin.food-market.kz
|
||||||
ENV PUBLIC_SITE_URL=$PUBLIC_SITE_URL
|
ENV PUBLIC_SITE_URL=$PUBLIC_SITE_URL
|
||||||
ENV PUBLIC_APP_URL=$PUBLIC_APP_URL
|
ENV PUBLIC_APP_URL=$PUBLIC_APP_URL
|
||||||
RUN pnpm build
|
RUN pnpm build
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
import Logo from './Logo.astro'
|
import Logo from './Logo.astro'
|
||||||
const APP_URL = import.meta.env.PUBLIC_APP_URL || 'https://test.food-market.kz'
|
const APP_URL = import.meta.env.PUBLIC_APP_URL || 'https://admin.food-market.kz'
|
||||||
---
|
---
|
||||||
<header class="sticky top-0 z-40 bg-white/95 backdrop-blur border-b border-slate-200">
|
<header class="sticky top-0 z-40 bg-white/95 backdrop-blur border-b border-slate-200">
|
||||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 h-14 flex items-center justify-between gap-4">
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 h-14 flex items-center justify-between gap-4">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue