Skip to content

Commit

Permalink
chore: update env var setup
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Jan 28, 2025
1 parent e7343d3 commit 4aca944
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/platform-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ jobs:
npm install
- name: Test Build
run: |
cp ee/apps/platform/.env.sample ee/apps/platform/.env
npm run prisma:generate -w ee/apps/platform
npm run build -w ee/apps/platform
1 change: 1 addition & 0 deletions apps/dashboard/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ NEXT_PUBLIC_MULTI_TENANT=false
KARRIO_ADMIN_API_KEY=XXX

# next-auth config
AUTH_TRUST_HOST=true
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET="n*s-ex6@ex_r1i%bk=3jd)p+lsick5bi*90!mbk7rc3iy_op1r"

Expand Down
26 changes: 26 additions & 0 deletions ee/apps/platform/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Karrio Platform
KARRIO_PLATFORM_API_URL=http://0.0.0.0:5002
KARRIO_PLATFORM_TENANT_API_DOMAIN=localhost:5002
KARRIO_PLATFORM_TENANT_DASHBOARD_DOMAIN=localhost:3000
KARRIO_PLATFORM_API_KEY={your_karrio_platform_api_key}
NEXT_PUBLIC_KARRIO_PLATFORM_TENANT_API_DOMAIN=localhost:5002
NEXT_PUBLIC_KARRIO_PLATFORM_TENANT_DASHBOARD_DOMAIN=localhost:3000

# Connect to Supabase via connection pooling with Supavisor.
DATABASE_URL="postgresql://{username}:{password}@{host}:6543/{database}?pgbouncer=true"

# Direct connection to the database. Used for migrations.
DIRECT_URL="postgresql://{username}:{password}@{host}:5432/{database}"

# next-auth config
NEXTAUTH_URL=http://localhost:4002
AUTH_SECRET="{your_auth_secret}"

GITHUB_CLIENT_ID={your_github_client_id}
GITHUB_CLIENT_SECRET={your_github_client_secret}

NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY={your_stripe_publishable_key}
NEXT_PUBLIC_STRIPE_PRICING_TABLE_ID={your_stripe_pricing_table_id}
STRIPE_SECRET_KEY={your_stripe_secret_key}

RESEND_API_KEY={your_resend_api_key}
2 changes: 1 addition & 1 deletion ee/platform

0 comments on commit 4aca944

Please sign in to comment.