From f2a3f285fae4b6350c40cd3abe69a336df58ca7a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 4 Aug 2023 14:11:13 -0500 Subject: [PATCH] Use Deno.serve instead of deprecated "serve" from deno_std --- src/deps.ts | 1 - src/server.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/deps.ts b/src/deps.ts index d3091e1..fe6398b 100644 --- a/src/deps.ts +++ b/src/deps.ts @@ -50,4 +50,3 @@ export { generateSeededRsa } from 'https://gitlab.com/soapbox-pub/seeded-rsa/-/r export * as secp from 'npm:@noble/secp256k1@^1.7.1'; export { LRUCache } from 'npm:lru-cache@^10.0.0'; export { DB as Sqlite } from 'https://deno.land/x/sqlite@v3.7.0/mod.ts'; -export { serve } from 'https://deno.land/std@0.177.0/http/server.ts'; diff --git a/src/server.ts b/src/server.ts index c9d3f4f..d377d4a 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1,6 +1,5 @@ import 'https://deno.land/std@0.177.0/dotenv/load.ts'; -import { serve } from '@/deps.ts'; import app from './app.ts'; -serve(app.fetch); +Deno.serve(app.fetch);