VercelPostgresError - 'missing_connection_string'
Hello everyone!
So I'm getting the following error while trying to use the
@vercel/postgres
package with drizzle ORM
Here is my db index.ts
As well as my drizzle.config.ts
Few notes:
1. The URL is provided in connectionString. I'm sure it's defined. I have even hardcoded it. I'm 99% sure that the case is that Vercel postgres doesn't really read it and is trying to look for POSTGRES_URL
in the env (which is not present because I want to use prefixes for each DB depending on the environment).
2. As you can probably already guess I'm trying to make it so depending on the environment I'm using a different DB. You got any advice on that?0 Replies