-
Hello! I'm getting errors while running I saw Prisma has a guide for it in their website But it's for webpack. So I tried to replicate it in my const result = await esbuild.build({
entryPoints: ['./worker/index.ts'],
bundle: true,
minify: mode === 'production',
sourcemap: mode !== 'production',
format: 'esm',
metafile: true,
external: ['__STATIC_CONTENT_MANIFEST'],
define: {
'process.env.NODE_ENV': `"${mode}"`,
'process.env.VERSION': `"${version}"`,
},
plugins: [
alias({
"@prisma/client": path.join( __dirname, "node_modules/@prisma/client/index.js"),
}),
],
platform: "node",
outfile,
}); (path stuff is because I couldn't use And now I'm getting Does anyone have any idea? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'm sorry, I just realized |
Beta Was this translation helpful? Give feedback.
-
Ok, figured out. It was the But in the end this got so complicated 😅 I think I'll not use Cloudflare Workers and Prisma for now. |
Beta Was this translation helpful? Give feedback.
Ok, figured out. It was the
Data Proxy
option of Prisma. I forgot to setup that.But in the end this got so complicated 😅 I think I'll not use Cloudflare Workers and Prisma for now.