refactor(build): replace staging/cp env hack with vite --mode per-environment
- Rename .env.staging → .env.dev (and .default template) - Add .env.test.default for the test tier (test-api.oneskyit.com) - build:staging → build:dev/test/prod using vite --mode <name> - deploy:staging → deploy:dev; add deploy:test - Dockerfile: ARG BUILD_MODE=dev; explicit .env.runtime copy per mode - .dockerignore: rewritten (deduped); allow .env.dev/.env.test/.env.prod - .gitignore: track .env.dev.default and .env.test.default - Remove dead PUBLIC_AE_* imports from ae_stores.ts (ACCOUNT_ID, EVENT_ID, NO_ACCOUNT_ID_TOKEN, SPONSORSHIP_CFG_ID); sponsorship_cfg_id defaults to null - Strip dead vars from .env.prod.default template (AE_CFG_ID, AE_APP_NODE_PORT, ACCOUNT_ID, EVENT_ID, SPONSORSHIP_CFG_ID, NO_ACCOUNT_ID_TOKEN) - GUIDE__Development.md: build:staging → build:dev Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -18,10 +18,10 @@ import {
|
||||
PUBLIC_AE_API_SECRET_KEY,
|
||||
PUBLIC_AE_API_CRUD_SUPER_KEY,
|
||||
PUBLIC_AE_NO_ACCOUNT_ID,
|
||||
PUBLIC_AE_NO_ACCOUNT_ID_TOKEN,
|
||||
PUBLIC_AE_ACCOUNT_ID,
|
||||
PUBLIC_AE_EVENT_ID,
|
||||
PUBLIC_AE_SPONSORSHIP_CFG_ID
|
||||
// PUBLIC_AE_NO_ACCOUNT_ID_TOKEN,
|
||||
// PUBLIC_AE_ACCOUNT_ID,
|
||||
// PUBLIC_AE_EVENT_ID,
|
||||
// PUBLIC_AE_SPONSORSHIP_CFG_ID
|
||||
} from '$env/static/public';
|
||||
|
||||
const api_server_fqdn = PUBLIC_AE_API_SERVER; // 'api.oneskyit.com'
|
||||
@@ -34,9 +34,9 @@ const api_crud_super_key = PUBLIC_AE_API_CRUD_SUPER_KEY;
|
||||
// const ae_account_id = PUBLIC_AE_ACCOUNT_ID;
|
||||
const ae_account_id: null | string = null;
|
||||
const ae_no_account_id = PUBLIC_AE_NO_ACCOUNT_ID;
|
||||
const ae_no_account_id_token = PUBLIC_AE_NO_ACCOUNT_ID_TOKEN;
|
||||
const ae_event_id = PUBLIC_AE_EVENT_ID;
|
||||
const ae_sponsorship_cfg_id = PUBLIC_AE_SPONSORSHIP_CFG_ID;
|
||||
// const ae_no_account_id_token = PUBLIC_AE_NO_ACCOUNT_ID_TOKEN;
|
||||
// const ae_event_id = PUBLIC_AE_EVENT_ID;
|
||||
// const ae_sponsorship_cfg_id = PUBLIC_AE_SPONSORSHIP_CFG_ID;
|
||||
|
||||
// Loose bag-of-anything type used throughout the store. Once stores are broken into
|
||||
// typed domain files, individual structs will have proper interfaces instead.
|
||||
@@ -174,7 +174,7 @@ const ae_app_local_data_defaults: key_val = {
|
||||
posts: {},
|
||||
|
||||
sponsorships: {
|
||||
cfg_id: ae_sponsorship_cfg_id,
|
||||
cfg_id: null,
|
||||
|
||||
for_type: null,
|
||||
for_id: null,
|
||||
@@ -350,7 +350,7 @@ const slct_obj_template: key_val = {
|
||||
sponsorship_id: null,
|
||||
sponsorship_obj: {},
|
||||
sponsorship_obj_li: [],
|
||||
sponsorship_cfg_id: ae_sponsorship_cfg_id,
|
||||
sponsorship_cfg_id: null,
|
||||
sponsorship_cfg_obj: {},
|
||||
sponsorship_cfg_obj_li: [],
|
||||
post_id: null,
|
||||
|
||||
Reference in New Issue
Block a user