Deploying Expressjs to Vercel.

Hi! I already have app with turborepo (its monorepo) and i want to deploy it on the Vercel. They problem is that i can deploy my frontend (in vue) when i point directly to the apps/frontend directory, but i cannot do the same with my apps/backend, its always 404 not found and idk how to handle that.. (Also as its API i've tried to check this url with postman but it responded with same results 'not found'...) Thats my repo: https://github.com/Bartholomeas/work-scraper I have vercel.json in apps/backend which is redirecting everything to /api (because i found that vercel needs to have everything on /api route) like here:
{
"version": 2,
"builds": [
{
"src": "./src/server.ts",
"use": "@vercel/node"
}
],
"rewrites": [
{
"source": "/(.*)",
"destination": "/api"
}
]
}
{
"version": 2,
"builds": [
{
"src": "./src/server.ts",
"use": "@vercel/node"
}
],
"rewrites": [
{
"source": "/(.*)",
"destination": "/api"
}
]
}
Do you have any advices what am i doing wrong? :/ Maybe i shouldnt deploy it on vercel? Btw. it uses sqlite database
GitHub
GitHub - Bartholomeas/work-scraper
Contribute to Bartholomeas/work-scraper development by creating an account on GitHub.
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server