feat: prepare for Vercel deployment with PostgreSQL migration

This commit is contained in:
kaunghtut24 2025-06-16 15:36:08 +05:30
parent 38ab8a260c
commit ffdc8c5b6c
8 changed files with 97 additions and 27 deletions

26
vercel.json Normal file
View file

@ -0,0 +1,26 @@
{
"version": 2,
"buildCommand": "npm run build",
"installCommand": "npm install",
"framework": "nextjs",
"builds": [
{
"src": "package.json",
"use": "@vercel/next"
}
],
"env": {
"POSTGRES_URL": "@postgres_url",
"OPENAI_API_KEY": "@openai_api_key",
"GROQ_API_KEY": "@groq_api_key",
"ANTHROPIC_API_KEY": "@anthropic_api_key",
"GEMINI_API_KEY": "@gemini_api_key",
"DEEPSEEK_API_KEY": "@deepseek_api_key",
"SEARXNG_API_URL": "@searxng_api_url",
"OLLAMA_API_URL": "@ollama_api_url",
"LM_STUDIO_API_URL": "@lm_studio_api_url",
"CUSTOM_OPENAI_API_URL": "@custom_openai_api_url",
"CUSTOM_OPENAI_API_KEY": "@custom_openai_api_key",
"CUSTOM_OPENAI_MODEL_NAME": "@custom_openai_model_name"
}
}