Hey folks! *Have an issue here with environmental...
# orm-help
s
Hey folks! Have an issue here with environmental variables in
prisma.yml
file, when deploying to Zeit’s Now:
in development (localhost) [of course, haha] everything works as expected. prisma.yml
Copy code
datamodel: datamodel.prisma
endpoint: ${env:PRISMA_ENDPOINT}
secret: ${env:PRISMA_SECRET}

..
however, when deploying with
now
the deployment times out with the following error:
Copy code
/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:
Copy code
{
  "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?
b
maybe try to submit the env variables as now secrets, also why are you using version 1 ?