Skip to content

Commit b365edc

Browse files
committed
add frontend url from vercel
1 parent 2e61958 commit b365edc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backend/app.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ app.use(express.json());
2929

3030
// Enable CORS
3131
const allowedOrigins = [
32-
process.env.FRONTEND_URL || "http://localhost:5173",
33-
process.env.FRONTEND_URL_PROD || "https://your-frontend.onrender.com",
32+
process.env.FRONTEND_URL || "http://localhost:5173", // Default for development
33+
process.env.FRONTEND_URL_PROD ||
34+
"https://star-wars-character-data-api.vercel.app/",
3435
];
3536

3637
app.use(

0 commit comments

Comments
 (0)