chore: fix build & emulation

This commit is contained in:
41666 2021-08-01 16:37:33 -04:00
parent 462ef26ea2
commit 3ca37cff17
5 changed files with 13 additions and 7 deletions

View file

@ -204,5 +204,6 @@ fork(async () => {
reload();
});
console.log('starting on http://localhost:6609');
server.listen(6609, '0.0.0.0');
const port = args.port || 6609;
console.log(`starting on http://localhost:${port}`);
server.listen(port, '0.0.0.0');

View file

@ -1,3 +1,4 @@
import { interactionHandler } from '@roleypoly/interactions/handlers/interaction';
import { respond } from '@roleypoly/worker-utils';
import { Router } from '@roleypoly/worker-utils/router';
import { healthz } from './handlers/healthz';
@ -5,7 +6,8 @@ import { uiPublicURI } from './utils/config';
const router = new Router();
router.add('GET', '/_healthz', healthz);
router.add('GET', '_healthz', healthz);
router.add('POST', 'interaction', interactionHandler);
// Root Zen <3
router.addFallback('root', () => {

View file

@ -9,6 +9,7 @@
"devDependencies": {
"@cloudflare/workers-types": "^2.2.2",
"@roleypoly/types": "*",
"@roleypoly/worker-emulator": "*",
"@roleypoly/worker-utils": "*",
"@types/node": "^16.4.10",
"tweetnacl": "^1.0.3"