fix: deno.json import map for Edge Function deployment

Map all externalized bare imports (anthropic, aws-sdk, gray-matter, child_process)
and MCP SDK subpath imports to explicit npm:/node: specifiers for Deno compatibility.
This commit is contained in:
root
2026-04-11 03:26:08 +00:00
parent 1f51bc1463
commit 5bd4398da4
3 changed files with 127 additions and 102 deletions
+1
View File
@@ -7,3 +7,4 @@ bin/
.18a49dfd730ff378-00000000.bun-build
.18a49f9dfb996f70-00000000.bun-build
.gstack/
supabase/.temp/
+7 -1
View File
@@ -2,7 +2,13 @@
"imports": {
"postgres": "npm:postgres@3",
"openai": "npm:openai@4",
"@modelcontextprotocol/sdk/": "npm:@modelcontextprotocol/sdk@1/",
"@anthropic-ai/sdk": "npm:@anthropic-ai/sdk@0",
"@aws-sdk/client-s3": "npm:@aws-sdk/client-s3@3",
"gray-matter": "npm:gray-matter@4",
"child_process": "node:child_process",
"@modelcontextprotocol/sdk/server/index.js": "npm:@modelcontextprotocol/sdk@1/server/index.js",
"@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js": "npm:@modelcontextprotocol/sdk@1/server/webStandardStreamableHttp.js",
"@modelcontextprotocol/sdk/types.js": "npm:@modelcontextprotocol/sdk@1/types.js",
"hono": "npm:hono@4",
"hono/cors": "npm:hono@4/cors",
"crypto": "node:crypto"
File diff suppressed because one or more lines are too long