Skip to content

Commit

Permalink
Update deploy.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
K0IN committed Jul 22, 2023
1 parent 2051853 commit b3e4e84
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions app/backend/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { serve } from "./mod.ts";

// todo read this from env!

const port = 80;
const vapidKey = 'eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwiYWxnIjoiRVMyNTYiLCJ4IjoiUV92WlVXUExOUlFMRnU5QWRNaGRDQlFpY1FKamxYajVHZ2lwY19BS1E5USIsInkiOiJILXlDUF9hZ3FzRmpGMmgtZ2dNTTdVT1UxdktJN1JTcU1XSVhfZjBJekhnIiwiZCI6IjVXdzg1TnFxN09lY0pyaDN5MDl6a1JLWWR3TEhUVTVObjlNZUNqMkh6Y2MiLCJrZXlfb3BzIjpbInNpZ24iXSwiZXh0Ijp0cnVlfQ==';
const sub = 'mailto:example@example.com';
const cors = false;
const frontend = 'build';
const sendkey = undefined;
const loginkey = undefined;
const values = Deno.env.toObject();
const port = values.PORT ?? 80;
const vapidKey = values.VAPID_KEY ?? 'eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwiYWxnIjoiRVMyNTYiLCJ4IjoiUV92WlVXUExOUlFMRnU5QWRNaGRDQlFpY1FKamxYajVHZ2lwY19BS1E5USIsInkiOiJILXlDUF9hZ3FzRmpGMmgtZ2dNTTdVT1UxdktJN1JTcU1XSVhfZjBJekhnIiwiZCI6IjVXdzg1TnFxN09lY0pyaDN5MDl6a1JLWWR3TEhUVTVObjlNZUNqMkh6Y2MiLCJrZXlfb3BzIjpbInNpZ24iXSwiZXh0Ijp0cnVlfQ==';
const sub = values.SUB ?? 'mailto:example@example.com';
const cors = values.CORS ?? false;
const frontend = values.FRONTEND ?? 'static-site';
const sendkey = values.SENDKEY ?? undefined;
const loginkey = values.LOGINKEY ?? undefined;


await serve({
Expand Down

0 comments on commit b3e4e84

Please sign in to comment.