source repo import
This commit is contained in:
9
api/vercel_index.js
Normal file
9
api/vercel_index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { handleRequest } from "../src/handle_request.js";
|
||||
|
||||
export const config = {
|
||||
runtime: 'edge' //告诉 Vercel 这是 Edge Function
|
||||
};
|
||||
|
||||
export default async function handler(req) {
|
||||
return handleRequest(req);
|
||||
}
|
||||
Reference in New Issue
Block a user