Open spreet6999 opened 6 months ago
you env doesn't have any values or removed them?
get the db creds from vercel postgres
try running vercel dev instead of npm run dev
that did the magic for me https://github.com/orgs/vercel/discussions/2350#discussioncomment-5850746
you env doesn't have any values or removed them?
I removed them for here only
I didn't do seed rather i ran the ddl and dml manually in vercel postgres ui and in my local i used vercel run.
I didn't do seed rather i ran the ddl and dml manually in vercel postgres ui and in my local i used vercel run.
Exactly, I had to use Prisma for the ddl and dml, they should resolve this issue whatever it is because even after my data is seeded in the remote Db, fetching using the @vercel/postgres still gives me the same error as above.
i had the same problem, what i did was put the: "seed": "node -r dotenv/config ./scripts/seed.js", before the : "start": "next start" Then i created the tables
rename .env.example to .env
rename .env.example to .env
Nice I had it named .env.local
I am facing issue while following the create dashboard application from the documentation (chapter - 6):
An error occurred while attempting to seed the database: VercelPostgresError: VercelPostgresError - 'missing_connection_string': You did not supply a 'connectionString' and no 'POSTGRES_URL' env var was found.
Screenshot of the error:
Here is how my seed.js looks like:
Here is how my .env file looks like:
Node Version: 20.9.0 OS: MacOS Monterey: Version - 12.6