ScottAgirs
09/13/2019, 11:40 PMprisma.yml
file, when deploying to Zeit’s Now:
in development (localhost) [of course, haha] everything works as expected.
prisma.yml
datamodel: datamodel.prisma
endpoint: ${env:PRISMA_ENDPOINT}
secret: ${env:PRISMA_SECRET}
..
however, when deploying with now
the deployment times out with the following error:
/home/nowuser/src/node_modules/prisma-binding/dist/Prisma.js:41
T throw new Error(" *No Prisma endpoint found. Please provide the `endpoint` constructor option.* ");
T ^
T Error: No Prisma endpoint found. Please provide the `endpoint` constructor option.
T at new Prisma (/home/nowuser/src/node_modules/prisma-binding/dist/Prisma.js:41:19)
T at Object.<anonymous> (/home/nowuser/src/src/db.js:4:12)
T at Module._compile (module.js:652:30)
T
T at Module.load (module.js:565:32)
T at tryModuleLoad (module.js:505:12)
T at Function.Module._load (module.js:497:3)
T at Module.require (module.js:596:17)
T at require (internal/module.js:11:18)
T at Object.<anonymous> (/home/nowuser/src/src/index.js:3:12)
T [nodemon] app crashed - waiting for file changes before starting...
T More details: <https://err.sh/now-cli/no-open-port-found>
T signal: 9
T npm start
and a now.json:
{
"version": 1,
"build": {
"env": {
"DEV_FRONTEND_URL": "777",
"FRONTEND_URL": "777",
"PRISMA_ENDPOINT": "777",
"PRISMA_SECRET": "777",
"APP_SECRET": "777",
"STRIPE_SECRET": "777",
..
}
}
}
Any ideas fellow fellasz?Bjoern
09/14/2019, 9:35 AM