removed cors
Some checks failed
backend-action / build-image (push) Failing after 9s

This commit is contained in:
2024-05-10 09:04:31 +07:00
parent be42901480
commit 8854022fac
2 changed files with 0 additions and 3 deletions

View File

@@ -17,7 +17,6 @@
"@trpc/client": "^10.45.2",
"@trpc/server": "^10.45.2",
"better-sqlite3": "^9.5.0",
"cors": "^2.8.5",
"drizzle-orm": "^0.30.8",
"drizzle-zod": "^0.5.1",
"express": "^4.19.2",

View File

@@ -2,7 +2,6 @@ import { createContext, router } from "./trpc";
import { createHTTPServer } from "@trpc/server/adapters/standalone";
import { userRoute } from "./userRoute";
import { runPlayground } from "./playgroud";
import cors from "cors";
import { infoRoute } from "./infoRoute";
export const appRouter = router({
@@ -15,7 +14,6 @@ async function main() {
const server = createHTTPServer({
createContext: createContext,
router: appRouter,
middleware: cors(),
});
server.listen(3000);