JuicyBenjamin
JuicyBenjamin3w ago

Cannot deploy properly to deno deploy

So I've just run a simple next js starter from the deno documentation and wanted to deploy it to deno deploy to see how this workflow is compared to vercel. However I'm getting permission denied and all sorts of other errors, any idea what went wrong?
PermissionDenied: 'Deno.exit' is not allowed in this context.
at Object.exit (ext:deno_deploy/os.js:69:9)
at Process.reallyExit (node:process:314:15)
at Process.exit (node:process:63:11)
at ServerImpl.<anonymous> (file:///node_modules/.deno/next@14.2.20/node_modules/next/dist/server/lib/start-server.js:276:25)
at eventLoopTick (ext:core/01_core.js:175:7) {
name: "PermissionDenied"
}
PermissionDenied: 'Deno.exit' is not allowed in this context.
at Object.exit (ext:deno_deploy/os.js:69:9)
at Process.reallyExit (node:process:314:15)
at Process.exit (node:process:63:11)
at ServerImpl.<anonymous> (file:///node_modules/.deno/next@14.2.20/node_modules/next/dist/server/lib/start-server.js:276:25)
at eventLoopTick (ext:core/01_core.js:175:7) {
name: "PermissionDenied"
}
1 Reply
JuicyBenjamin
JuicyBenjaminOP3w ago
Just tried deploying the same github repo with vercel and had 0 issues.

Did you find this page helpful?