Skip to content

Commit

Permalink
add server.init() to adapter-vercel
Browse files Browse the repository at this point in the history
Required since sveltejs/kit#6179, as hooks.js
are initialized in server.init()
  • Loading branch information
SG60 committed Aug 26, 2022
1 parent 62d6728 commit 925e113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adapter-vercel/files/edge.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { manifest } from 'MANIFEST';

const server = new Server(manifest);

server.init({
env: process.env
});

/**
* @param {Request} request
*/
Expand Down

0 comments on commit 925e113

Please sign in to comment.