.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DATABASE_URL
secret
Server Environment Variables
BETTER_AUTH_SECRET
secret
BETTER_AUTH_URL
CORS_ORIGIN
NODE_ENV
VITE_SERVER_URL
Web Environment Variables (build time)
brew install flyctl && fly launch --from https://github.com/amanvarshney01/my-better-t-app
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/amanvarshney01/my-better-t-app
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/amanvarshney01/my-better-t-app