Ship each part to production — keeping secrets on the server.
Golden rule: secrets stay on the server. Fill the REPLACE_ME_* placeholders in the API’s
env.prod there, never commit them, and never put a secret in a VITE_* / PUBLIC_* var
(those are inlined into the shipped bundle).
Image builds apply each repo’s allowScripts (current npm skips dependencies’ install scripts unless it
allows them). The kit needs none; a npm warn install-scripts line in a build log means a new dependency
needs a decision — see Install scripts.
Backend (shipwide_api)
Docker: the container boots migrate → seed → serve. Migrations + the idempotent seed run
automatically. Provide a managed Postgres 17 + Redis 7 (or run them alongside). The repo’s
docker-compose.yml is a local-dev setup: its Postgres/Redis use dev credentials (Redis has no
password) and listen on 127.0.0.1 only — in production give both strong credentials (a
password in REDIS_URL).
Purge cron (required): run daily — node dist/jobs/purge.js (compiled path; tsx is
dev-only). It’s the physical half of account deletion + support-ticket retention; idempotent.
Email: point SMTP_* at a transactional provider (e.g. Postmark). Set SPF, DKIM, DMARC
on the sending domain — with passwordless auth, a code in spam means nobody can sign in.
MAIL_REPLY_TO is your support inbox: ticket notifications answer to it, and the website’s
support form (POST /v1/support) delivers its messages there.
CORS: CORS_ORIGINS = your exact web origin(s). The native app origins
(capacitor://localhost iOS, https://localhost Android, tauri://localhost macOS/Linux,
http://tauri.localhost Windows) and the admin’s ADMIN_URL are always allowed.
Client allowlist: CLIENT_IDS = your app’s VITE_CLIENT_ID (comma-separated for several
clients). Only those ids (plus the admin’s admin) can sign in.
Reverse proxy: TRUST_PROXY = whose X-Forwarded-For the API trusts. The default
loopback,uniquelocal covers a proxy on the same host / private network (e.g. nginx → the
container); otherwise list your proxy’s IPs/CIDRs. Never true on a publicly reachable API —
clients could spoof their IP and dodge per-IP rate limits.
Secrets to set: DATABASE_URL, REDIS_URL, JWT_SECRET (≥32), SMTP_*, ADMIN_*,
DATA_ENCRYPTION_KEY, and any GOOGLE_/APPLE_/REVENUECAT/ONESIGNAL integration you enable.
In production the API refuses to start without DATABASE_URL, REDIS_URL, JWT_SECRET and
DATA_ENCRYPTION_KEY (unset, or still a REPLACE_ME_* placeholder) and names each missing one.
Any other key left as a placeholder counts as unset: that integration stays off, and the API lists
those keys in a warning at boot.
At-rest encryption key: DATA_ENCRYPTION_KEY (openssl rand -base64 32) encrypts admin
TOTP secrets in the database — required in production. Once set, never lose or remove it —
keep an offline copy. To rotate: move the old key to DATA_ENCRYPTION_PREVIOUS_KEYS, set the new
one, restart, run node dist/scripts/encryptAtRest.js, then drop the old key.
App (shipwide_app)
Web / PWA: npm run build → static output (keeps pre-compressed .gz/.br assets, useful
to an HTTP server). Serve from any static host / CDN. Its origin must be in the API’s
CORS_ORIGINS.
iOS / Android: the same npm run build (its cap sync step copies the bundle into the
native projects; Android skips the .gz/.br copies at packaging) — run it after
npm run switch_to_prod (production backend), then open the committed ios/ /
android/ projects in Xcode / Android Studio to archive and submit. Toolchain:
App → Native builds.
Desktop: Tauri bundles from src-tauri/ (Rust stable). Icons via npx tauri icon.
nginx serves the SPA (fallback to index.html, hashed assets cached forever / index.html
never, noindex + DENY). Outside the image: (1) point ADMIN_URL in the API env at this
origin or CORS refuses it; (2) put a network gate in front (Cloudflare Access / IP allowlist)
— it reads everyone’s data and needs no public reachability.
Website (shipwide_website)
npm run switch_to_prod (set your domain first), then npm run build
(astro-i18next generate + astro check + astro build) → static output; serve from any static
host / CDN. PUBLIC_* are inlined at build. To make the support form post to your API, set
PUBLIC_SUPPORT_ENDPOINT=https://<your-api-host>/v1/support and add the site origin to the
API’s CORS_ORIGINS.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Burakov","description":"Documentation for Burakov apps and developer packages.","colors":{"primary":"#4b4f95","light":"#7178bd","dark":"#3d417e"},"favicon":"https://mintcdn.com/burakov/2AFJl7XWo_ZFE2fL/favicon.svg?fit=max\u0026auto=format\u0026n=2AFJl7XWo_ZFE2fL\u0026q=85\u0026s=0c815f62bdd92b4529753385888bd98c","navbar":{"links":[{"href":"https://burakov.net","label":"burakov.net"}]},"footer":{"socials":{"github":"https://github.com/Nickbur"}},"fonts":{"heading":{"family":"Golos Text"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"burakov","hasAudioNarration":false,"actualSubdomain":"burakov","customDomains":["docs.burakov.net"],"gitSource":{"type":"github","owner":"nickbur","repo":"docs.burakov.net","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af2749dd78589d56a1eaa48","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Help","count":80},{"language":"default","tag":"Features","count":79},{"language":"default","tag":"Get started","count":51},{"language":"default","tag":"Getting started","count":51},{"language":"default","tag":"Guides","count":40},{"language":"default","tag":"Shipwide","count":22},{"language":"default","tag":"Remigent","count":21},{"language":"default","tag":"Reference","count":20},{"language":"default","tag":"Hushgard","count":20},{"language":"default","tag":"For admins","count":18}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"shipwide/deployment","slug":"/shipwide/deployment","pageMetadata":{"title":"Deployment","description":"Ship each part to production — keeping secrets on the server.","mode":"wide","href":"/shipwide/deployment"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Ship each part to production — keeping secrets on the server.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Golden rule: secrets stay on the server.`}),` Fill the `,_jsx(_components.code,{children:`REPLACE_ME_*`}),` placeholders in the API’s\n`,_jsx(_components.code,{children:`env.prod`}),` there, never commit them, and never put a secret in a `,_jsx(_components.code,{children:`VITE_*`}),` / `,_jsx(_components.code,{children:`PUBLIC_*`}),` var\n(those are inlined into the shipped bundle).`]})}),`\n`,_jsxs(_components.p,{children:[`Image builds apply each repo’s `,_jsx(_components.code,{children:`allowScripts`}),` (current npm skips dependencies’ install scripts unless it\nallows them). The kit needs none; a `,_jsx(_components.code,{children:`npm warn install-scripts`}),` line in a build log means a new dependency\nneeds a decision — see `,_jsx(_components.a,{href:`/shipwide/install-scripts`,children:`Install scripts`}),`.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`backend-shipwide_api`,children:[`Backend (`,_jsx(_components.code,{children:`shipwide_api`}),`)`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Docker`}),`: the container boots `,_jsx(_components.code,{children:`migrate → seed → serve`}),`. Migrations + the idempotent seed run\nautomatically. Provide a managed Postgres 17 + Redis 7 (or run them alongside). The repo’s\n`,_jsx(_components.code,{children:`docker-compose.yml`}),` is a local-dev setup: its Postgres/Redis use dev credentials (Redis has no\npassword) and listen on `,_jsx(_components.code,{children:`127.0.0.1`}),` only — in production give both strong credentials (a\npassword in `,_jsx(_components.code,{children:`REDIS_URL`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Purge cron`}),` (required): run daily — `,_jsx(_components.code,{children:`node dist/jobs/purge.js`}),` (compiled path; `,_jsx(_components.code,{children:`tsx`}),` is\ndev-only). It’s the physical half of account deletion + support-ticket retention; idempotent.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Email`}),`: point `,_jsx(_components.code,{children:`SMTP_*`}),` at a transactional provider (e.g. Postmark). Set `,_jsx(_components.strong,{children:`SPF, DKIM, DMARC`}),`\non the sending domain — with passwordless auth, a code in spam means nobody can sign in.\n`,_jsx(_components.code,{children:`MAIL_REPLY_TO`}),` is your support inbox: ticket notifications answer to it, and the website’s\nsupport form (`,_jsx(_components.code,{children:`POST /v1/support`}),`) delivers its messages there.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`CORS`}),`: `,_jsx(_components.code,{children:`CORS_ORIGINS`}),` = your exact web origin(s). The native app origins\n(`,_jsx(_components.code,{children:`capacitor://localhost`}),` iOS, `,_jsx(_components.code,{children:`https://localhost`}),` Android, `,_jsx(_components.code,{children:`tauri://localhost`}),` macOS/Linux,\n`,_jsx(_components.code,{children:`http://tauri.localhost`}),` Windows) and the admin’s `,_jsx(_components.code,{children:`ADMIN_URL`}),` are always allowed.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Client allowlist`}),`: `,_jsx(_components.code,{children:`CLIENT_IDS`}),` = your app’s `,_jsx(_components.code,{children:`VITE_CLIENT_ID`}),` (comma-separated for several\nclients). Only those ids (plus the admin’s `,_jsx(_components.code,{children:`admin`}),`) can sign in.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Reverse proxy`}),`: `,_jsx(_components.code,{children:`TRUST_PROXY`}),` = whose `,_jsx(_components.code,{children:`X-Forwarded-For`}),` the API trusts. The default\n`,_jsx(_components.code,{children:`loopback,uniquelocal`}),` covers a proxy on the same host / private network (e.g. nginx → the\ncontainer); otherwise list your proxy’s IPs/CIDRs. Never `,_jsx(_components.code,{children:`true`}),` on a publicly reachable API —\nclients could spoof their IP and dodge per-IP rate limits.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Secrets to set`}),`: `,_jsx(_components.code,{children:`DATABASE_URL`}),`, `,_jsx(_components.code,{children:`REDIS_URL`}),`, `,_jsx(_components.code,{children:`JWT_SECRET`}),` (≥32), `,_jsx(_components.code,{children:`SMTP_*`}),`, `,_jsx(_components.code,{children:`ADMIN_*`}),`,\n`,_jsx(_components.code,{children:`DATA_ENCRYPTION_KEY`}),`, and any `,_jsx(_components.code,{children:`GOOGLE_/APPLE_/REVENUECAT/ONESIGNAL`}),` integration you enable.\nIn production the API `,_jsx(_components.strong,{children:`refuses to start`}),` without `,_jsx(_components.code,{children:`DATABASE_URL`}),`, `,_jsx(_components.code,{children:`REDIS_URL`}),`, `,_jsx(_components.code,{children:`JWT_SECRET`}),` and\n`,_jsx(_components.code,{children:`DATA_ENCRYPTION_KEY`}),` (unset, or still a `,_jsx(_components.code,{children:`REPLACE_ME_*`}),` placeholder) and names each missing one.\nAny other key left as a placeholder counts as unset: that integration stays off, and the API lists\nthose keys in a warning at boot.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`At-rest encryption key`}),`: `,_jsx(_components.code,{children:`DATA_ENCRYPTION_KEY`}),` (`,_jsx(_components.code,{children:`openssl rand -base64 32`}),`) encrypts admin\nTOTP secrets in the database — required in production. Once set, `,_jsx(_components.strong,{children:`never lose or remove it`}),` —\nkeep an offline copy. To rotate: move the old key to `,_jsx(_components.code,{children:`DATA_ENCRYPTION_PREVIOUS_KEYS`}),`, set the new\none, restart, run `,_jsx(_components.code,{children:`node dist/scripts/encryptAtRest.js`}),`, then drop the old key.`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`2`,id:`app-shipwide_app`,children:[`App (`,_jsx(_components.code,{children:`shipwide_app`}),`)`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Web / PWA`}),`: `,_jsx(_components.code,{children:`npm run build`}),` → static output (keeps pre-compressed `,_jsx(_components.code,{children:`.gz`}),`/`,_jsx(_components.code,{children:`.br`}),` assets, useful\nto an HTTP server). Serve from any static host / CDN. Its origin must be in the API’s\n`,_jsx(_components.code,{children:`CORS_ORIGINS`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`iOS / Android`}),`: the same `,_jsx(_components.code,{children:`npm run build`}),` (its `,_jsx(_components.code,{children:`cap sync`}),` step copies the bundle into the\nnative projects; Android skips the `,_jsx(_components.code,{children:`.gz`}),`/`,_jsx(_components.code,{children:`.br`}),` copies at packaging) — run it after\n`,_jsx(_components.code,{children:`npm run switch_to_prod`}),` (production backend), then open the committed `,_jsx(_components.code,{children:`ios/`}),` /\n`,_jsx(_components.code,{children:`android/`}),` projects in Xcode / Android Studio to archive and submit. Toolchain:\n`,_jsx(_components.a,{href:`/shipwide/app`,children:`App`}),` → Native builds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Desktop`}),`: Tauri bundles from `,_jsx(_components.code,{children:`src-tauri/`}),` (Rust stable). Icons via `,_jsx(_components.code,{children:`npx tauri icon`}),`.`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`2`,id:`admin-shipwide_admin`,children:[`Admin (`,_jsx(_components.code,{children:`shipwide_admin`}),`)`]}),`\n`,_jsxs(_components.p,{children:[`Docker + nginx, built with `,_jsx(_components.code,{children:`--build-arg VITE_*`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` build`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --build-arg`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` VITE_API_URL=https://api.example.com`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --build-arg`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` VITE_SITE_URL=https://example.com`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --build-arg`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` VITE_BRAND=\"Your product\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -t`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shipwide-admin`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -p`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 8080:80`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` shipwide-admin`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`nginx serves the SPA (fallback to `,_jsx(_components.code,{children:`index.html`}),`, hashed assets cached forever / `,_jsx(_components.code,{children:`index.html`}),`\nnever, `,_jsx(_components.code,{children:`noindex`}),` + `,_jsx(_components.code,{children:`DENY`}),`). Outside the image: (1) point `,_jsx(_components.code,{children:`ADMIN_URL`}),` in the API env at this\norigin or CORS refuses it; (2) put a `,_jsx(_components.strong,{children:`network gate`}),` in front (Cloudflare Access / IP allowlist)\n— it reads everyone’s data and needs no public reachability.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`website-shipwide_website`,children:[`Website (`,_jsx(_components.code,{children:`shipwide_website`}),`)`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`npm run switch_to_prod`}),` (set your domain first), then `,_jsx(_components.code,{children:`npm run build`}),`\n(`,_jsx(_components.code,{children:`astro-i18next generate + astro check + astro build`}),`) → static output; serve from any static\nhost / CDN. `,_jsx(_components.code,{children:`PUBLIC_*`}),` are inlined at build. To make the support form post to your API, set\n`,_jsx(_components.code,{children:`PUBLIC_SUPPORT_ENDPOINT=https://\u003cyour-api-host>/v1/support`}),` and add the site origin to the\nAPI’s `,_jsx(_components.code,{children:`CORS_ORIGINS`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Deployment","description":"Ship each part to production — keeping secrets on the server.","mode":"wide","href":"/shipwide/deployment"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Backend (shipwide_api)","slug":"backend-shipwide_api","depth":2,"children":[]},{"title":"App (shipwide_app)","slug":"app-shipwide_app","depth":2,"children":[]},{"title":"Admin (shipwide_admin)","slug":"admin-shipwide_admin","depth":2,"children":[]},{"title":"Website (shipwide_website)","slug":"website-shipwide_website","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"burakov","siteName":"Burakov","title":"Deployment - Burakov","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-10T01:34:25.664Z","originalFileLocation":"shipwide/deployment.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Ship each part to production — keeping secrets on the server.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Burakov\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Deployment - Burakov\">\u003cmeta data-mint-head property=\"og:description\" content=\"Ship each part to production — keeping secrets on the server.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Burakov\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.burakov.net/shipwide/deployment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://burakov.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Deployment\u0026amp;description=Ship+each+part+to+production+%E2%80%94+keeping+secrets+on+the+server.\u0026amp;theme=025c0801450c27ad7d21e140\u0026amp;signature=bbd9b99fe99444ef22dbee05ab5ed4f529273a980cae15654393606cb59a1075\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Deployment - Burakov\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Ship each part to production — keeping secrets on the server.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://burakov.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Deployment\u0026amp;description=Ship+each+part+to+production+%E2%80%94+keeping+secrets+on+the+server.\u0026amp;theme=025c0801450c27ad7d21e140\u0026amp;signature=bbd9b99fe99444ef22dbee05ab5ed4f529273a980cae15654393606cb59a1075\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/burakov/XahOJ5zc_W-QrTJn/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Burakov\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4b4f95\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.burakov.net/shipwide/deployment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/shipwide/deployment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.burakov.net/#organization\",\"name\":\"Burakov\",\"url\":\"https://docs.burakov.net\"},{\"@type\":\"WebSite\",\"@id\":\"https://docs.burakov.net#website\",\"name\":\"Burakov\",\"url\":\"https://docs.burakov.net\",\"publisher\":{\"@id\":\"https://docs.burakov.net/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.burakov.net/shipwide/deployment#webpage\",\"url\":\"https://docs.burakov.net/shipwide/deployment\",\"name\":\"Deployment\",\"description\":\"Ship each part to production — keeping secrets on the server.\",\"dateModified\":\"2026-11-10T01:34:25.664Z\",\"isPartOf\":{\"@id\":\"https://docs.burakov.net#website\"},\"breadcrumb\":{\"@id\":\"https://docs.burakov.net/shipwide/deployment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.burakov.net/shipwide/deployment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.burakov.net/shipwide/configuration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deployment\",\"item\":\"https://docs.burakov.net/shipwide/deployment\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.burakov.net/shipwide/deployment#article\",\"headline\":\"Deployment\",\"name\":\"Deployment\",\"description\":\"Ship each part to production — keeping secrets on the server.\",\"url\":\"https://docs.burakov.net/shipwide/deployment\",\"mainEntityOfPage\":{\"@id\":\"https://docs.burakov.net/shipwide/deployment#webpage\"},\"dateModified\":\"2026-11-10T01:34:25.664Z\",\"publisher\":{\"@id\":\"https://docs.burakov.net/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.burakov.net#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Burakov\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Burakov\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/shipwide/deployment.md","siteName":"Burakov","nav":{"global":null,"products":[{"product":"All projects","icon":"house","description":"Every project at a glance","pages":[{"title":"All projects","href":""}]},{"product":"Finity","icon":"timer","description":"Countdowns, life in weeks and a journal","pages":[{"title":"Finity","href":"/finity"}]},{"product":"Tidybook","icon":"address-book","description":"One clean, encrypted address book","pages":[{"title":"Tidybook","href":"/tidybook"}]},{"product":"Shipwide","icon":"rocket","description":"Multi-platform Vue starter kit","tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/shipwide"}]},{"tab":"Guides","groups":[{"group":"Guides","pages":[{"title":"Configuration","mode":"wide","href":"/shipwide/configuration"},{"title":"Customization","description":"Rebrand and theme the app, admin and site — design tokens, fonts and languages.","mode":"wide","href":"/shipwide/customization"},{"title":"Deployment","mode":"wide","href":"/shipwide/deployment"},{"title":"CI/CD","description":"The GitHub Actions pipeline that builds and deploys the web app and builds the Android and desktop apps.","mode":"wide","href":"/shipwide/ci-cd"},{"title":"HTTPS in dev","mode":"wide","href":"/shipwide/https-dev"},{"title":"Install scripts","mode":"wide","href":"/shipwide/install-scripts"}]},{"group":"Help","pages":[{"title":"FAQ \u0026 troubleshooting","mode":"wide","href":"/shipwide/faq"}]}]},{"tab":"Features","pages":[{"title":"Features","href":"/shipwide/billing"}]}]},{"product":"RingKit","icon":"phone-volume","description":"Native VoIP incoming calls for Capacitor","pages":[{"title":"RingKit","href":"/ringkit"}]},{"product":"Quietletter","icon":"heart-pulse","description":"Zero-knowledge dead man's switch","pages":[{"title":"Quietletter","href":"/quietletter"}]},{"product":"Hushgard","icon":"shield-halved","description":"Self-hosted encrypted chat and calls","pages":[{"title":"Hushgard","href":"/hushgard"}]},{"product":"Cronch","icon":"clock","description":"Task scheduler for Windows and macOS","pages":[{"title":"Cronch","href":"/cronch"}]},{"product":"Lexiline","icon":"eye","description":"Calm AI topic watcher","pages":[{"title":"Lexiline","href":"/lexiline"}]},{"product":"Proofday","icon":"circle-check","description":"Daily accountability journal","pages":[{"title":"Proofday","href":"/proofday"}]},{"product":"Sidedrop","icon":"share-nodes","description":"Peer-to-peer file transfer in the browser","pages":[{"title":"Sidedrop","href":"/sidedrop"}]},{"product":"Semble","icon":"users","description":"Video meetings with an AI participant","pages":[{"title":"Semble","href":"/semble"}]},{"product":"Swornlist","icon":"shield-check","description":"Verified guest list and door for events","pages":[{"title":"Swornlist","href":"/swornlist"}]},{"product":"Remigent","icon":"robot","description":"Autonomous software team for your products","pages":[{"title":"Remigent","href":"/remigent"}]},{"product":"WhySoSlow","icon":"gauge-high","description":"Offline speed-limit co-driver for Kyiv","pages":[{"title":"WhySoSlow","href":"/whysoslow"}]},{"product":"Fogline","icon":"map-location-dot","description":"Fog-of-war map of where you've been","pages":[{"title":"Fogline","href":"/fogline"}]},{"product":"Divine eCommerce","icon":"bag-shopping","description":"Self-hostable e-commerce engine","pages":[{"title":"Divine eCommerce","href":"/divine-ecommerce"}]},{"product":"OMOS","icon":"server","description":"Rust operating system — developer preview","pages":[{"title":"OMOS","href":"/omos"}]}]},"basePath":"","title":"Deployment - Burakov","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}