DenoDDeno
Powered by
Yash GosaraY
Deno•2y ago
Yash Gosara

Deno blog error while trying to deploy it on deno deploy

Hello, when I run
deno run --allow-net --allow-read --allow-env Blog/blog.ts
deno run --allow-net --allow-read --allow-env Blog/blog.ts
, it works fine locally. However, when I deploy it on Deno Deploy, I encounter the following error:

The deployment failed: UNCAUGHT_EXCEPTION

Error: Cannot run blog from a remote URL.
    at configureBlog (file:///src/blog.tsx:182:11)
    at blog (file:///src/blog.tsx:111:27)
    at file:///src/Blog/blog.ts:3:1
The deployment failed: UNCAUGHT_EXCEPTION

Error: Cannot run blog from a remote URL.
    at configureBlog (file:///src/blog.tsx:182:11)
    at blog (file:///src/blog.tsx:111:27)
    at file:///src/Blog/blog.ts:3:1


Is there something I’m missing, or are there any suggestions or best practices I should follow for deploying the Deno blog?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Deno blog deployment failure
simultsopSsimultsop / help
2y ago
Error Deploying to Deno Deploy LODASH isEmpty.js
PinoleroPPinolero / help
3y ago
Deno KV on deno deploy
MolanMMolan / help
11mo ago
MongoDB connection error on Deno Deploy
tas13Ttas13 / help
3y ago