Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix prod #4

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
NEXT_PUBLIC_VERCEL_URL="http://localhost:3000"

# Prisma
DATABASE_URL="postgresql://postgres:docker@localhost:5432/jupiter"
DIRECT_DATABASE_URL="postgresql://postgres:docker@localhost:5432/jupiter"

# Cloudflare
CLOUDFLARE_ACCOUNT_ID=""
CLOUDFLARE_ACCESS_KEY=""
CLOUDFLARE_SECRET_KEY=""
CLOUDFLARE_BUCKET_NAME=""

# OpenAI

OPENAI_API_KEY=""

# Panda

PANDAVIDEO_API_KEY=""

# Auth

NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="sample-secret"
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Upload videos, upload to panda and R2, embed om player
- datadog / sentry
- login
- tag logic
- use github login when VERCEL_ENV is preview
- use email magic link login when VERCEL_ENV is preview
- cache deps ci
- limit video upload size (for now) [as we have limits on audio transcription size and lambda execution time as well]
1 change: 1 addition & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
generator client {
provider = "prisma-client-js"
previewFeatures = ["fullTextSearch"]
binaryTargets = ["native", "rhel-openssl-1.0.x"]
}

datasource db {
Expand Down
2 changes: 1 addition & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const env = createEnv({
CLOUDFLARE_BUCKET_NAME: z.string().min(1),
OPENAI_API_KEY: z.string().min(1),
PANDAVIDEO_API_KEY: z.string().min(1),
NEXTAUTH_URL: z.string().min(1),
NEXTAUTH_URL: z.string().optional(),
NEXTAUTH_SECRET: z.string().min(1),
GOOGLE_CLIENT_ID: z.string().min(1),
GOOGLE_CLIENT_SECRET: z.string().min(1),
Expand Down
Loading