-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix for deno 2 * Fix node version
- Loading branch information
Showing
4 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,18 @@ const values = Deno.env.toObject(); | |
const port = values.PORT || 80; | ||
const vapidKey = values.VAPID_KEY || 'eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwiYWxnIjoiRVMyNTYiLCJ4IjoiUV92WlVXUExOUlFMRnU5QWRNaGRDQlFpY1FKamxYajVHZ2lwY19BS1E5USIsInkiOiJILXlDUF9hZ3FzRmpGMmgtZ2dNTTdVT1UxdktJN1JTcU1XSVhfZjBJekhnIiwiZCI6IjVXdzg1TnFxN09lY0pyaDN5MDl6a1JLWWR3TEhUVTVObjlNZUNqMkh6Y2MiLCJrZXlfb3BzIjpbInNpZ24iXSwiZXh0Ijp0cnVlfQ=='; | ||
const sub = values.SUB || 'mailto:[email protected]'; | ||
const cors = values.CORS || false; | ||
const cors = Boolean(values.CORS) || false; | ||
const frontend = values.FRONTEND ?? 'static-site'; | ||
const sendkey = values.SENDKEY || undefined; | ||
const loginkey = values.LOGINKEY || undefined; | ||
|
||
|
||
await serve({ | ||
port: Number(port), | ||
sub: sub, | ||
vapidKey: vapidKey, | ||
cors: cors, | ||
frontend: frontend, | ||
sendkey: sendkey, | ||
loginkey: loginkey, | ||
port: Number(port), | ||
sub: sub, | ||
vapidKey: vapidKey, | ||
cors: cors, | ||
frontend: frontend, | ||
sendkey: sendkey, | ||
loginkey: loginkey, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters