Closed mzavattaro closed 4 months ago
I'm surprised, the changes in DB.ts
and the environment files should be enough.
I think maybe the issue is that on npm run dev
it's not taking into consideration the .env.development.local
file, whereas the npm run build
does take into consideration the .env.producation.local
file:
Edit: no, that's not it either
Just merged the PR: https://github.com/ixartz/Next-js-Boilerplate/pull/290
I've been trying to add support for Neon Postgresql database read/writes when in development rather than relying on PGlite due to losing the temporary database when when you exit the dev build.
I've got the
DATABASE_URL
in an.env.development.local
file and the connection works based on my updated code below. But I still can't get it to read/write to the Neon development database.Is there anywhere else I need to change?