diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 13:24:28 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 13:24:28 +0300 |
| commit | 752b96afdf2fa285492deaf3a676d2b2c2e47c9f (patch) | |
| tree | 2f871d262bd2ef87d52e30737b5ead2fc2cd738e /backend/index.ts | |
| parent | f021b52028f5965516671b7f53e7e71543a8ae52 (diff) | |
Dockerize
Diffstat (limited to 'backend/index.ts')
| -rw-r--r-- | backend/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/index.ts b/backend/index.ts index 5a974d6..9efec62 100644 --- a/backend/index.ts +++ b/backend/index.ts @@ -8,15 +8,15 @@ import { sql, } from "slonik"; import * as config from "./config"; -import { ValueRecord } from "../shared-types"; -import { Server as SocketIOServer, Socket } from "socket.io"; +import { ValueRecord } from "./shared-types"; +import { Server as SocketIOServer } from "socket.io"; const app = express(); const httpServer = http.createServer(app); const io = new SocketIOServer(httpServer, { cors: { - origin: "*", + origin: config.frontendUrl, }, }); |
