Nutlope / roomGPT

Upload a photo of your room to generate your dream room with AI.
https://www.roomgpt.io/
MIT License
9.87k stars 1.31k forks source link

DATABASE_URL for local development #37

Closed yfeng21 closed 1 year ago

yfeng21 commented 1 year ago

I added my Vercel API to .env, and can see the generated image in my Vercel dashboard, but my local server showed the following error, and thus I couldn't see the image from my locally-hosted website. In my .env, I only set REPLICATE_API_KEY, as DATABASE_URL was marked as optional

error - PrismaClientInitializationError: 
Invalid `prisma.room.create()` invocation:

error: Environment variable not found: DATABASE_URL.
  -->  schema.prisma:3
   | 
 2 |   provider          = "postgresql"
 3 |   url               = env("DATABASE_URL")
Nutlope commented 1 year ago

Hey all. I've just simplified the repo to remove auth and payments so you can clone and deploy very easily, only with a Replicate environment variable. Try it out and if you still have any problems, please open a new issue and I will take a look!