Code-side

src/lib/dev-login-config.ts — startup assertion: throws if NODE_ENV=production + ENABLE_DEV_LOGIN=true, scoped to runtime (skipped during next build).
Container

scripts/migrate.mjs — runs Drizzle migrations against DATABASE_URL.
deploy/docker-entrypoint.sh — runs migrations then exec node server.js. Skip with RUN_MIGRATIONS=false.
Dockerfile — copies drizzle/, scripts/migrate.mjs, entrypoint into runner stage; ENTRYPOINT now points at the script.
Compose

deploy/compose.yaml — famapp now image: ${FAMAPP_IMAGE:-ghcr.io/ginnoir/famapp:latest} (build still works locally as fallback). Authentik pinned via AUTHENTIK_IMAGE_TAG (default 2024.12.3). New RUN_MIGRATIONS env passed through.
.env.production.example — documents FAMAPP_IMAGE, AUTHENTIK_IMAGE_TAG, RUN_MIGRATIONS.
CI/CD

.github/workflows/ci.yml — push/PR: typecheck + lint + format:check + build.
.github/workflows/release.yml — v* tag: build + push ghcr.io/ginnoir/famapp:vX.Y.Z, :X.Y, :latest to GHCR.
Docs

deploy/README.md — full deploy/rollback/release runbook.
CHANGELOG.md — release log seeded with an Unreleased entry.
docs/tasks/09-pre-deploy-checklist.md — task 09 reframed from one-shot removal to a recurring pre-deploy checklist.
STATUS.md — updated.
Verified: pnpm typecheck, pnpm format, pnpm build, and docker compose config all clean.
This commit is contained in:
ginnoir
2026-05-06 17:37:37 -05:00
parent 285a460eb8
commit c73338e256
73 changed files with 955 additions and 728 deletions
+4 -15
View File
@@ -16,7 +16,6 @@ export function PwaRegister() {
// fired between page load and this effect running (e.g. DevTools toggle).
const syncId = setTimeout(() => setIsOffline(!navigator.onLine), 0);
if (!("serviceWorker" in navigator)) {
return () => {
window.removeEventListener("offline", handleOffline);
@@ -35,10 +34,7 @@ export function PwaRegister() {
const handleControllerChange = () => {
if (hadController) setShowUpdate(true);
};
navigator.serviceWorker.addEventListener(
"controllerchange",
handleControllerChange
);
navigator.serviceWorker.addEventListener("controllerchange", handleControllerChange);
const handleMessage = (e: MessageEvent) => {
if (e.data?.type === "OFFLINE_MUTATION") {
@@ -52,10 +48,7 @@ export function PwaRegister() {
clearTimeout(syncId);
window.removeEventListener("offline", handleOffline);
window.removeEventListener("online", handleOnline);
navigator.serviceWorker.removeEventListener(
"controllerchange",
handleControllerChange
);
navigator.serviceWorker.removeEventListener("controllerchange", handleControllerChange);
navigator.serviceWorker.removeEventListener("message", handleMessage);
};
}, []);
@@ -67,9 +60,7 @@ export function PwaRegister() {
role="status"
className="fixed top-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 rounded-lg bg-amber-50 px-4 py-3 text-amber-900 shadow-lg ring-1 ring-amber-200 dark:bg-amber-950 dark:text-amber-100 dark:ring-amber-800"
>
<span className="text-sm font-medium">
You&rsquo;re offline showing cached content
</span>
<span className="text-sm font-medium">You&rsquo;re offline showing cached content</span>
<button
onClick={() => setIsOffline(false)}
aria-label="Dismiss"
@@ -85,9 +76,7 @@ export function PwaRegister() {
role="alert"
className="fixed top-4 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 rounded-lg bg-destructive px-4 py-3 text-destructive-foreground shadow-lg"
>
<span className="text-sm font-medium">
Changes can&rsquo;t be saved while offline
</span>
<span className="text-sm font-medium">Changes can&rsquo;t be saved while offline</span>
</div>
)}