- set
DATA_PROXY_DATABASE_URL
env pointing to dataproxy prisma connection npm i
will runnpx prisma generate --data-proxy
npm run dev
- go to
http://localhost:3000/
You should see the error produced by prisma:
Cannot fetch data from service:
include is not a function
To hotfix the issue:
- go to
/prismaClient/runtime/index.js
, - move following piece of code (line around 23971)
__name(nodeFetch, "nodeFetch");
var include = typeof require !== "undefined" ? require : () => {
};
above the nodeFetch
function
__name(buildResponse, "buildResponse");
async function nodeFetch(url, options = {}) {
const https = include("https");
const httpsOptions = buildOptions(options);
where the include
function is being called.
I am committing also the prisma generated output, which probably won't be part of the real application.