feat: migrate from node to vercel adapter and add vercel config

chore: update package.json dependencies for vercel deployment
fix: add www subdomain to allowed origins in like/dislike API endpoints
chore: add vercel to gitignore
This commit is contained in:
cojocaru-david
2025-05-01 02:16:18 +03:00
parent 0c90442415
commit f60bc5590a
7 changed files with 892 additions and 204 deletions

View File

@@ -37,6 +37,7 @@ export const POST: APIRoute = async ({ params, request }) => {
const allowedOrigins = [
'https://cojocarudavid.me', // Replace with your actual domain
'http://localhost:3000', // For local development
'https://www.cojocarudavid.me', // Replace with your actual domain
];
if (!origin || !allowedOrigins.includes(origin)) {

View File

@@ -38,6 +38,7 @@ export const POST: APIRoute = async ({ params, request }) => {
const allowedOrigins = [
'https://cojocarudavid.me', // Replace with your actual domain
'http://localhost:3000', // For local development
'https://www.cojocarudavid.me', // Replace with your actual domain
];
if (!origin || !allowedOrigins.includes(origin)) {