Skip to content

Commit

Permalink
netlify edge functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 27, 2022
1 parent efa25a2 commit 5ad9f8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/adapter-netlify/src/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { manifest, prerendered } from 'MANIFEST';
const server = new Server(manifest);
const prefix = `/${manifest.appDir}/`;

await server.init({
// @ts-ignore
env: Deno.env.toObject()
});

/**
* @param { Request } request
* @param { any } context
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-netlify/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"checkJs": true,
"noEmit": true,
"noImplicitAny": true,
"module": "es2020",
"module": "es2022",
"target": "es2022",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
Expand Down

0 comments on commit 5ad9f8d

Please sign in to comment.