Skip to content

Commit

Permalink
fix(deploy): update vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
AkekoChan committed Mar 12, 2024
1 parent bf42019 commit 54136e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions server/server.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import cookieParser from "cookie-parser";
import cors from "cors";
import dotenv from "dotenv";
import express from "express";
Expand All @@ -16,7 +15,6 @@ dotenv.config();
const app = express();

app.use(express.json());
app.use(cookieParser());
app.use(cors());

app.use("/api/auth", authRoutes);
Expand Down
5 changes: 4 additions & 1 deletion server/vercel.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"version": 2,
"rewrites": [{ "source": "/server.js", "destination": "/api" }]
"rewrites": [{ "source": "/(.*)", "destination": "/api" }],
"scripts": {
"build": "node server.js"
}
}

0 comments on commit 54136e3

Please sign in to comment.