Feat/better auth #3

Open
tyler wants to merge 8 commits from TOC/route-commerce:feat/better-auth into main
Owner
No description provided.
tyler added 8 commits 2026-06-08 20:28:12 -06:00
Add Gitea Actions deploy workflow
Deploy to route.crispygoat.com / deploy (push) Failing after 56s
988310fd50
Remove npm cache from workflow (local runner)
Deploy to route.crispygoat.com / deploy (push) Failing after 3s
8ad8dbb25b
Use npm install instead of npm ci (no lockfile)
Deploy to route.crispygoat.com / deploy (push) Failing after 2m56s
fddb9178c0
Load .env.production from server before build
Deploy to route.crispygoat.com / deploy (push) Failing after 38s
beac3e48f1
Fix workflow: use actual secrets, fix env file writing
Deploy to route.crispygoat.com / deploy (push) Successful in 3m21s
e8f2d76637
Add self-hosted Postgres docker-compose
Deploy to route.crispygoat.com / deploy (push) Successful in 3m1s
367a5625f3
- docker-compose.yml: Postgres 16 Alpine with named volume, healthcheck
- .env.example: POSTGRES_* and DATABASE_URL template
- .gitignore: exclude db_data/ volume

Starting fresh, no data migration. App still wired to Supabase;
DB is ready for migrations to be applied.
- New: src/lib/storage.ts — S3-compatible client, uploadFile/deleteFile/listFiles/publicUrl helpers, bucket constants
- New: docker-compose adds minio + minio_init services
- Replaced Supabase fetch PUTs in:
  - src/actions/brand-settings.ts (3 uploaders)
  - src/actions/products/upload-image.ts
  - src/actions/communications/import-contacts.ts
  - src/app/api/water-photo-upload/route.ts
- Replaced hardcoded Supabase URLs in:
  - src/components/storefront/TuxedoVideoHero.tsx
  - src/components/time-tracking/TimeTrackingFieldClient.tsx
  - src/app/tuxedo/about/page.tsx
  - src/lib/email-service.ts (4 occurrences)
- Added @aws-sdk/client-s3 + @aws-sdk/s3-request-presigner
- .env.example adds MinIO + storage vars
- Migration cleanup: deleted BUNDLE_018_042, 4 XXX drafts, 087/145/099-contact storage migrations
- Migration patches: 006 STATIC→STABLE, 135 param reordering
- Preflight: added pgcrypto extension, removed storage stub
- Verified: MinIO upload/list/delete round-trip works against local instance
This pull request has changes conflicting with the target branch.
  • .env.example
  • .gitea/workflows/deploy.yml
  • .gitignore
  • middleware.ts
  • package.json
  • src/actions/admin/force-login.ts
  • src/actions/brand-settings.ts
  • src/actions/communications/import-contacts.ts
  • src/actions/login.ts
  • src/actions/products/upload-image.ts
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u https://git.crispygoat.com/TOC/route-commerce feat/better-auth:TOC-feat/better-auth
git checkout TOC-feat/better-auth
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tyler/route-commerce#3