diff --git a/Makefile b/Makefile index b05c82e..e567bd4 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ build: pnpm install pnpm run -F client build pnpm run -F server dbdeploy + pnpm run -F server dbtypes start: PORT=$(PORT) pnpm start diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index ebdcfea..7e96f76 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -6,12 +6,7 @@ import { staticPlugin } from "@elysiajs/static"; const port = env.PORT || 5001; const app = new Elysia() - .use( - cors({ - origin: "http://localhost:3000", - credentials: true, - }) - ) + .use(cors()) .onRequest(({ request }) => { console.log(request.method, request.url); })