Hello everyone, I'm coming to you because I wanted to deploy a Next.js project on a WebPaas server, and I encounter some issues.
At the build time I need to access to database credentials in order to Next.js to generate Static Page from db information. This process is called "Collecting page data...".
I know that the PLATFORM_RELATIONSHIPS env variables is not accessible at build time, so how do I access to the db without it ?
I have tried to connect to database via an ssh:tunnels from my local pc and I was able to access to it.
It's only at build time that I encounter this issues.
It's my first ever post, so if I forgot some information, or if it is not clear, don't hesitate to tell me.
Sorry for my English.
Thank's in advance
Jimmy
Access to DB credentials at build time : using Knex.js, Next.js and Postgresql
Related questions
- Some commands in SQL do not work
1287
07.08.2020 20:34
- Microsoft SQL Server (DBaaS / Dedicated)
1195
18.05.2021 09:01
- ERR_CONNECTION_RESET when connecting to phpmyadmin
505
28.11.2023 10:07
- Evaluate using Profile-Guided Optimization (PGO) for OVH services
310
19.02.2024 08:36