Current versus Expected behavior
Current:
- I always see the warning:
“Configuration Settings in the current Production deployment differ from your current Project Settings.”
-
My API routes (e.g., /api/test, /api/lemon-subscriptions) do not work and never show up in the Vercel logs.
-
No matter how many times I redeploy, the warning persists and API routes are not available.
Expected:
-
The warning should disappear after redeploying with correct settings.
-
API routes should be available and show up in logs.
Code, configuration, and steps that reproduce this issue:
- My vercel.json (in the root of my repo):
{
"version": 2,
"builds": [
{
"src": "api/*.js",
"use": "@vercel/node"
},
{
"src": "package.json",
"use": "@vercel/static-build",
"config": {
"distDir": "dist"
}
}
],
"redirects": [
{
"source": "/(.*)",
"has": [
{
"type": "host",
"value": "www.getmashgpt.com"
}
],
"destination": "https://getmashgpt.com/$1",
"permanent": true
}
],
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}
-
No overrides are set in my project settings.
-
All environment variables are set for Production.
I have tried:
-
Multiple redeploys (including after code changes)
-
Disconnecting and reconnecting my GitHub repo
-
Confirming the correct repo and branch are linked
-
API routes never show up in logs, and the warning never goes away.
Project information (URL, framework, environment, project settings)
-
Project URL: getmashgpt.com
-
Framework: Vite (with serverless functions in /api/)
-
Environment: Production (issue also occurs in Preview)
Project Settings:
-
No overrides
-
Output directory: dist
-
Build command: default
-
All environment variables set for Production
Thanks for any help offered!