trieb-work / strapi-neon-tech-db-branches

Strapi plugin to connect the neon.tech Postgres database using the neon API 💾
https://trieb.work/blog/article/neontech-serverless-postgres-db-strapi-auto-branching-plugin
MIT License
6 stars 2 forks source link

it only allows the database name of neondb #1

Open ivanandresdiaz opened 11 months ago

ivanandresdiaz commented 11 months ago

strapi-neon-tech-db-branches\server\register.ts line 169

dbConnectionUri =postgres://${config.neonRole}:${password}@${ep.host}/neondb;

so the only way it works is when your database is named neondb.

so I can not connect my database

JannikZed commented 10 months ago

@ivanandresdiaz thank you for your request. We can make that configurable - shouldn't be an issue. Just the problem is, that strapi always needs root access to the DB, which created some issues for us when trying to connect strapi to a different neon db. So it will need some manual intervention from the user and making sure, that the access rights are working