mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 11:55:23 +02:00
fix(sync): harden Dropbox loading
This commit is contained in:
+2
-1
@@ -31,6 +31,7 @@ async function readJsonBody(req: any): Promise<any> {
|
||||
|
||||
export default defineConfig(({mode}) => {
|
||||
const env = loadEnv(mode, '.', '');
|
||||
const prodEnv = loadEnv('production', '.', '');
|
||||
return {
|
||||
plugins: [
|
||||
react(),
|
||||
@@ -44,7 +45,7 @@ export default defineConfig(({mode}) => {
|
||||
const config = getBcConfig(env);
|
||||
|
||||
// Populate process.env with loaded env variables for serverless handlers
|
||||
Object.assign(process.env, env);
|
||||
Object.assign(process.env, prodEnv, env);
|
||||
|
||||
// Helper to adapt Node.js req/res to Vercel signature
|
||||
const adaptVercelHandler = async (handler: any) => {
|
||||
|
||||
Reference in New Issue
Block a user