Configuration

ShipQuick uses environment variables and config files to manage settings.

Environment Variables (.env)

The .env file handles sensitive data like API keys and database credentials.

Rename .env.example to .env and fill in the values:

# Database (MongoDB)
MONGODB_URI="mongodb://localhost:27017/shipquick"

# Authentication (Better Auth)
BETTER_AUTH_SECRET="your-secret-key"
BETTER_AUTH_URL="http://localhost:5173"

# Payments (Polar.sh)
POLAR_ACCESS_TOKEN=""
POLAR_WEBHOOK_SECRET=""

# Email (Resend)
RESEND_API_KEY=""

# Analytics
VITE_GA_MEASUREMENT_ID="G-XXXXXXXXXX"

After updating analytics environment variables, restart the dev server. Google Analytics is initialized in src/routes/__root.tsx and tracks route-level page views.

Theme Configuration

You can customize the look and feel in src/config/themes.ts.

Change the ACTIVE_THEME constant to switch color palettes:

// Available: "neon" | "sunset" | "ocean" | "pastel" | ...
export const ACTIVE_THEME = "neon";