mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 17:49:09 +00:00
chore: fix build & emulation
This commit is contained in:
parent
462ef26ea2
commit
3ca37cff17
5 changed files with 13 additions and 7 deletions
|
@ -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');
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue