Skip to content

Commit 74ae8a6

Browse files
committed
Fix env vars
1 parent c53ad13 commit 74ae8a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ CORS_ORIGIN=http://localhost:3000
1919

2020
# On prod :
2121
# NODE_ENV=production
22-
# CORS_ORIGIN=https://votre-domaine.com
22+
# CORS_ORIGIN=https://votre-domaine.com

backend/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.use(helmet());
1515
// Configuration CORS
1616
const allowedOrigins = [
1717
'http://localhost:3000',
18-
process.env.CORS_ORIGIN || 'https://gainorloss.mybots.fun'
18+
process.env.CORS_ORIGIN || 'https://analytics.rmm.realtoken.community/'
1919
].filter(Boolean); // Supprime les valeurs undefined
2020
console.log('�� CORS Origins autorisés:', allowedOrigins);
2121

0 commit comments

Comments
 (0)