From 615a0569f9cd329cd02b0585d2c58e02c6785db0 Mon Sep 17 00:00:00 2001 From: martin-mfg <2026226+martin-mfg@users.noreply.github.com> Date: Thu, 18 Sep 2025 15:25:22 +0200 Subject: [PATCH] add rewrite and commands for Vercel --- backend/vercel.json | 4 ++++ frontend/frontend/package.json | 1 + frontend/vercel.json | 9 +++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/backend/vercel.json b/backend/vercel.json index e3826c52..c5c6bdf4 100644 --- a/backend/vercel.json +++ b/backend/vercel.json @@ -4,6 +4,10 @@ { "source": "/", "destination": "https://github.com/anuraghazra/github-readme-stats" + }, + { + "source": "/frontend/:match*", + "destination": "https://monorepo-test-frontend-neon.vercel.app/frontend/:match*" } ] } \ No newline at end of file diff --git a/frontend/frontend/package.json b/frontend/frontend/package.json index bbafa61e..141f4966 100644 --- a/frontend/frontend/package.json +++ b/frontend/frontend/package.json @@ -57,6 +57,7 @@ "test": "react-scripts test", "eject": "react-scripts eject" }, + "homepage": "/frontend", "eslintConfig": { "extends": [ "react-app", diff --git a/frontend/vercel.json b/frontend/vercel.json index b64c3cfb..d7a899e6 100644 --- a/frontend/vercel.json +++ b/frontend/vercel.json @@ -1,8 +1,5 @@ { - "redirects": [ - { - "source": "/", - "destination": "https://github.com/anuraghazra/github-readme-stats" - } - ] + "buildCommand": "yarn build-trends", + "outputDirectory": "build", + "installCommand": "yarn install" } \ No newline at end of file