temp: firebase deployment progress
This commit is contained in:
@@ -9,23 +9,28 @@ const envSchema = Joi.object({
|
||||
NODE_ENV: Joi.string().valid('development', 'production', 'test').default('development'),
|
||||
PORT: Joi.number().default(5000),
|
||||
|
||||
// Database
|
||||
DATABASE_URL: Joi.string().required(),
|
||||
// Database - Made optional for Firebase deployment with Supabase
|
||||
DATABASE_URL: Joi.string().allow('').default(''),
|
||||
DB_HOST: Joi.string().default('localhost'),
|
||||
DB_PORT: Joi.number().default(5432),
|
||||
DB_NAME: Joi.string().required(),
|
||||
DB_USER: Joi.string().required(),
|
||||
DB_PASSWORD: Joi.string().required(),
|
||||
DB_NAME: Joi.string().allow('').default(''),
|
||||
DB_USER: Joi.string().allow('').default(''),
|
||||
DB_PASSWORD: Joi.string().allow('').default(''),
|
||||
|
||||
// Supabase Configuration
|
||||
SUPABASE_URL: Joi.string().allow('').optional(),
|
||||
SUPABASE_ANON_KEY: Joi.string().allow('').optional(),
|
||||
SUPABASE_SERVICE_KEY: Joi.string().allow('').optional(),
|
||||
|
||||
// Redis
|
||||
REDIS_URL: Joi.string().default('redis://localhost:6379'),
|
||||
REDIS_HOST: Joi.string().default('localhost'),
|
||||
REDIS_PORT: Joi.number().default(6379),
|
||||
|
||||
// JWT
|
||||
JWT_SECRET: Joi.string().required(),
|
||||
// JWT - Optional for Firebase Auth
|
||||
JWT_SECRET: Joi.string().default('default-jwt-secret-change-in-production'),
|
||||
JWT_EXPIRES_IN: Joi.string().default('1h'),
|
||||
JWT_REFRESH_SECRET: Joi.string().required(),
|
||||
JWT_REFRESH_SECRET: Joi.string().default('default-refresh-secret-change-in-production'),
|
||||
JWT_REFRESH_EXPIRES_IN: Joi.string().default('7d'),
|
||||
|
||||
// File Upload
|
||||
@@ -137,6 +142,12 @@ export const config = {
|
||||
password: envVars.DB_PASSWORD,
|
||||
},
|
||||
|
||||
supabase: {
|
||||
url: envVars.SUPABASE_URL,
|
||||
anonKey: envVars.SUPABASE_ANON_KEY,
|
||||
serviceKey: envVars.SUPABASE_SERVICE_KEY,
|
||||
},
|
||||
|
||||
redis: {
|
||||
url: envVars.REDIS_URL,
|
||||
host: envVars.REDIS_HOST,
|
||||
@@ -260,7 +271,7 @@ export const config = {
|
||||
|
||||
// Vector Database Configuration
|
||||
vector: {
|
||||
provider: envVars['VECTOR_PROVIDER'] || 'pgvector', // 'pinecone' | 'pgvector' | 'chroma'
|
||||
provider: envVars['VECTOR_PROVIDER'] || 'supabase', // 'pinecone' | 'pgvector' | 'chroma' | 'supabase'
|
||||
|
||||
// Pinecone Configuration
|
||||
pineconeApiKey: envVars['PINECONE_API_KEY'],
|
||||
|
||||
Reference in New Issue
Block a user