forked from Tadrisino/MathApp_frontend
The API moved to mathapi.tadrisino2.ir on 2026-09-26; api.math.tadrisino2.ir no longer resolves. .env.production is the only place that names it. deploy.sh fetches, runs npm ci and the type-check, builds into dist.next and swaps it in only when everything succeeded, so the site is never served half a build. The previous build stays in dist.prev for rollback, and a hand-edited dist/config.js on the server survives the release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
682 B
Plaintext
9 lines
682 B
Plaintext
# آدرسِ API در buildِ پروداکشن. تنها جایی از ریپو که دامنهی بکاند نوشته شده.
|
||
#
|
||
# برای عوض کردنِ دامنه دو راه هست:
|
||
# ۱) همین خط را عوض کنید و دوباره build بگیرید.
|
||
# ۲) بدونِ build: روی سرور، در dist/config.js مقدارِ apiBaseUrl را بنویسید.
|
||
# آن فایل در زمانِ اجرا خوانده میشود و بر این مقدار مقدم است.
|
||
# اگر nginxِ دامنهی فرانت /api را به بکاند پراکسی کند، مقدارِ /api کافی است.
|
||
VITE_API_BASE_URL=https://mathapi.tadrisino2.ir/api
|