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:
@@ -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)) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user