Update server.js
Browse files
server.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
import express from 'express';
|
| 3 |
import cors from 'cors';
|
| 4 |
import { bundle } from '@remotion/bundler';
|
|
|
|
| 1 |
+
// Try loading .env for local development, ignore if missing (production)
|
| 2 |
+
try { process.loadEnvFile?.(); } catch { } // Node 20+ native support
|
| 3 |
import express from 'express';
|
| 4 |
import cors from 'cors';
|
| 5 |
import { bundle } from '@remotion/bundler';
|