feat/bun-transition #21

Merged
david merged 24 commits from feat/bun-transition into main 2026-04-02 04:51:20 +00:00
4 changed files with 79 additions and 3 deletions
Showing only changes of commit a3cd46e39a - Show all commits
+15
View File
@@ -0,0 +1,15 @@
# Development environment configuration for EuchreCamp
# Copy this file to .env.development and fill in your values
# Database Configuration
DATABASE_PROVIDER=postgresql
# Development database URL - must contain "_dev" to pass safety checks
DATABASE_URL="postgresql://euchre_camp:password@localhost:5432/euchre_camp_dev"
# Authentication
BETTER_AUTH_SECRET="your-secret-key-change-this"
BETTER_AUTH_URL="http://localhost:3000"
# Application Configuration
NODE_ENV=development
TRUSTED_ORIGINS="http://localhost:3000,http://127.0.0.1:3000"
+54
View File
@@ -0,0 +1,54 @@
# EuchreCamp Environment Configuration
# Copy this file to .env and fill in your values
# ============================================
# Database Configuration
# ============================================
# PostgreSQL connection string
# Format: postgresql://username:password@host:port/database
DATABASE_URL=postgresql://euchre:euchrepassword@localhost:5432/euchre_camp
# Shadow database for Prisma migrations (optional for PostgreSQL)
DATABASE_SHADOW_URL=postgresql://euchre:euchrepassword@localhost:5432/euchre_camp_shadow
# Database provider (postgresql, mysql, sqlite, etc.)
DATABASE_PROVIDER=postgresql
# ============================================
# Better Auth Configuration
# ============================================
# Secret key for session encryption (generate a strong random string)
# Run: openssl rand -base64 32
BETTER_AUTH_SECRET=your-secret-key-change-in-production
# Base URL for authentication callbacks
# For production: https://your-domain.com
BETTER_AUTH_URL=http://localhost:3000
# ============================================
# Application Configuration
# ============================================
# Environment: development, production, test
NODE_ENV=production
# Trusted origins for CORS and authentication
# Add your domain(s) for production
TRUSTED_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
# ============================================
# Optional: External Services
# ============================================
# If using external database (e.g., Supabase, Railway)
# DATABASE_URL=postgresql://user:pass@host:port/db
# If using external auth provider
# BETTER_AUTH_URL=https://your-app.com
# ============================================
# CasaOS Deployment Notes
# ============================================
# When deploying to CasaOS, set these via the UI:
# 1. DATABASE_URL: Your PostgreSQL connection string
# 2. BETTER_AUTH_SECRET: Generate with: openssl rand -base64 32
# 3. BETTER_AUTH_URL: Your app's public URL
# 4. TRUSTED_ORIGINS: Your app's public URL(s)
+8 -1
View File
@@ -34,7 +34,14 @@ yarn-error.log*
.pnpm-debug.log*
# env files (can opt-in for committing if needed)
.env*
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
# Allow example env files to be tracked
!.env.example
!.env.development.example
# vercel
.vercel
+2 -2
View File
@@ -1,7 +1,7 @@
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './src/__tests__/e2e',
testDir: './e2e',
timeout: 30000,
expect: {
timeout: 5000
@@ -17,7 +17,7 @@ export default defineConfig({
// Reporter to use
reporter: 'html',
// Global setup and teardown
globalSetup: require.resolve('./src/__tests__/e2e/global.setup'),
globalSetup: require.resolve('./e2e/global.setup'),
// Use base URL for relative navigation
use: {
baseURL: 'http://localhost:3000',