Questions tagged [deno-deploy]

14 questions
5
votes
1 answer

Unable to use npm packages in deno deploy

From Deno 1.28, deno natively supports npm packages. But when I try to deploy it in deno-deploy. It is downloading the dependency but fails with Module not found I am trying to deploy an express application in deno deploy. import express from…
Karly
  • 51
  • 2
5
votes
0 answers

Deno / Postgres "invalid peer certificate contents: invalid peer certificate" error

I'm using deno db to connect to a supabase postgres server. Here's the error from deno deploy. TLS connection failed with message: invalid peer certificate contents: invalid peer certificate: UnsupportedCertVersion Defaulting to non-encrypted…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
3
votes
0 answers

Deno Deploy --cert flag

How can I add --cert flag when my project run on deno deploy? I am using deno fresh and supabase postgres. When in local environment I use --cert flag to set certificate, but in deno deploy I didn't know how to set --cert flag
Bilal Bera
  • 29
  • 2
2
votes
0 answers

GetStream with Supabase via Edge Function -- how to?

I need to write a Supabase Edge Function that interacts with GetStream. But as Supabase Edge Functions are running via Deno, I am importing the package via JS Deliver as follows: import { StreamChat } from…
boeledi
  • 6,837
  • 10
  • 32
  • 42
1
vote
1 answer

TypeError: Deno.run is not a function

My project works perfectly fine locally, but when I deploy the project on deno.dev it crashes. TypeError: Deno.run is not a function at build (file:///src/scripts/build.ts:2:26) at file:///src/server/main.ts:3:7 When my project runs for the…
kemicofa ghost
  • 16,349
  • 8
  • 82
  • 131
0
votes
0 answers

Issue deploying a Deno Fresh app using new ahead-of-time builds and GitHub actions

I'm trying to deploy my Fresh app using the new ahead-of-time builds to pre-optimize static assets. I've followed the instructions on the docs site and it works just fine locally. However, when trying to deploy on Deno Deploy, the deploy workflow…
hcode
  • 15
  • 3
0
votes
1 answer

TypeError: Deno.readFileSync is not a function

I am running into this error when I deploy my project to deno deploy. TypeError: Deno.readFileSync is not a function at parseFile (https://deno.land/x/dotenv@v3.2.2/mod.ts59) at config (https://deno.land/x/dotenv@v3.2.2/mod.ts:41:18) at…
0
votes
0 answers

Firebase throws an error: "Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds."

I followed this deno tutorial to create a simple web server that interacts with firebase. I created a copy of my deno project here. If I make an api call to the endpoint to /user-requests, I get an error: @firebase/firestore: Firestore (9.20.0):…
Matt
  • 8,195
  • 31
  • 115
  • 225
0
votes
1 answer

Error: "githubAccountBlocked" "Your account has been temporarily blocked. Please try again later, or use a different account."

I'm following along to the instructions on Deno as displayed here but I get the error "githubAccountBlocked", "message": "Your account has been temporarily blocked. Please try again later, or use a different account." When I click on the link…
Badrul
  • 179
  • 10
0
votes
1 answer

using paulmillr/noble-secp256k1 with deno deploy

I have this line in my file: import * as secp256k1 from "npm:@noble/secp256k1"; It works fine locally (deno run) When I try to deno deploy, it cannot find the module. I read this is because deno deploy doesn't yet support npm:. To circumvent it I…
Uri
  • 25,622
  • 10
  • 45
  • 72
0
votes
1 answer

How to redirect from https://www.example.com to https://example.com in Deno Fresh?

I have a website deployed on Deno deploy with a custom domain. I thought it would be possible to configure the appropriate redirects directly in the platform like I could do in for example, Vercel. My question is: How can I configure redirects from…
hcode
  • 15
  • 3
0
votes
1 answer

Oak framework Doesnt respond to request in deno deploy

I tried deploying my deno app to deno deploy but I have tried all means to work but still no response and I have no error in logs. This my code below.. import { load } from "https://deno.land/std@0.171.0/dotenv/mod.ts"; import { Application } from…
Mike MC
  • 1
  • 2
0
votes
1 answer

How to do robust logging in Deno Deploy?

I've been evaluating Deno Deploy as a solution for a middleware listener used in a larger application, and one thing that I'm still struggling with is that the Deno Deploy playground doesn't seem to have any obvious persistent logging feature. It…
cayblood
  • 1,838
  • 1
  • 24
  • 44
0
votes
0 answers

How to use Deno-Deploy with Fresh and Mongoose

I can't deploy a project on deno deploy that uses the mongoose module. I am trying to connect to a mongo database in a project that uses the fresh framework and I used mongoose to do so by using import mongoose from "npm:mongoose@^6.7"; in my…