From 876368ccc570ead7d1d1ecaa75c88bbfc9f06a30 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:49:34 -0500 Subject: [PATCH 01/22] Update index.ts --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7878a83..5c552d5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,11 +9,11 @@ import path from 'path'; const port = config.port!; const options = { - key: fs.readFileSync('key.pem'), - cert: fs.readFileSync('cert.pem') + key: fs.readFileSync('./etc/secrets/key.pem'), + cert: fs.readFileSync('./etc/secrets/cert.pem') }; https.createServer(options, app).listen(port, () => { connectToDb(); console.log(`Serveur en écoute sur :${port}`); -}) \ No newline at end of file +}) From a1a8a42479901cfc33e89b9b6d6f28899dc85b90 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:01:46 -0500 Subject: [PATCH 02/22] Update index.ts --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5c552d5..fc25139 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,8 +9,8 @@ import path from 'path'; const port = config.port!; const options = { - key: fs.readFileSync('./etc/secrets/key.pem'), - cert: fs.readFileSync('./etc/secrets/cert.pem') + key: fs.readFileSync('/etc/secrets/key.pem'), + cert: fs.readFileSync('/etc/secrets/cert.pem') }; https.createServer(options, app).listen(port, () => { From a3cb5858c70c06acc57d8308d2dbbdd7be23c374 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:08:40 -0500 Subject: [PATCH 03/22] Update index.ts --- src/index.ts | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index fc25139..6fb0de5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,12 +8,27 @@ import path from 'path'; const port = config.port!; -const options = { - key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('/etc/secrets/cert.pem') -}; +const keyPath = '/etc/secrets/key.pem'; +const certPath = '/etc/secrets/cert.pem'; -https.createServer(options, app).listen(port, () => { - connectToDb(); - console.log(`Serveur en écoute sur :${port}`); -}) +try { + if (!fs.existsSync(keyPath)) { + throw new Error(`Key file not found at ${keyPath}`); + } + if (!fs.existsSync(certPath)) { + throw new Error(`Cert file not found at ${certPath}`); + } + + const options = { + key: fs.readFileSync(keyPath), + cert: fs.readFileSync(certPath) + }; + + https.createServer(options, app).listen(port, () => { + connectToDb(); + console.log(`Server is listening on https://localhost:${port}`); + }); + +} catch (error) { + console.error('Error starting server:', error.message); +} From d9d1e8e7648a3fde75969f1d5e8e2e20ddd9b050 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:17:13 -0500 Subject: [PATCH 04/22] Update index.ts --- src/index.ts | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/src/index.ts b/src/index.ts index 6fb0de5..156f660 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,28 +7,15 @@ import fs from 'fs'; import path from 'path'; const port = config.port!; +console.log("hey") +console.log(port) -const keyPath = '/etc/secrets/key.pem'; -const certPath = '/etc/secrets/cert.pem'; +const options = { + key: fs.readFileSync('/etc/secrets/key.pem'), + cert: fs.readFileSync('/etc/secrets/cert.pem') +}; -try { - if (!fs.existsSync(keyPath)) { - throw new Error(`Key file not found at ${keyPath}`); - } - if (!fs.existsSync(certPath)) { - throw new Error(`Cert file not found at ${certPath}`); - } - - const options = { - key: fs.readFileSync(keyPath), - cert: fs.readFileSync(certPath) - }; - - https.createServer(options, app).listen(port, () => { - connectToDb(); - console.log(`Server is listening on https://localhost:${port}`); - }); - -} catch (error) { - console.error('Error starting server:', error.message); -} +https.createServer(options, app).listen(port, () => { + connectToDb(); + console.log(Serveur en écoute sur :${port}); +}) From 47dfb916ae4e4812601a19d3fc9b255fd8dbf103 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:38:40 -0500 Subject: [PATCH 05/22] Update index.ts --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 156f660..f01ed0d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,11 +11,11 @@ console.log("hey") console.log(port) const options = { - key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('/etc/secrets/cert.pem') + key: fs.readFileSync('key.pem'), + cert: fs.readFileSync('cert.pem') }; https.createServer(options, app).listen(port, () => { connectToDb(); - console.log(Serveur en écoute sur :${port}); + console.log(`Serveur en écoute sur :${port}`); }) From fffd32cf8749a6c5c00104c3021caecebbc22237 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:52:19 -0500 Subject: [PATCH 06/22] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f01ed0d..baf3945 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,7 +11,7 @@ console.log("hey") console.log(port) const options = { - key: fs.readFileSync('key.pem'), + key: fs.readFileSync('/etc/secrets/key.pem'), cert: fs.readFileSync('cert.pem') }; From ce8ec1a98a98b328ecb1a7fe8d0571fb35749526 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:58:11 -0500 Subject: [PATCH 07/22] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index baf3945..dca4d1d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,7 +12,7 @@ console.log(port) const options = { key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('cert.pem') + cert: fs.readFileSync('/etc/secrets/cert.pem') }; https.createServer(options, app).listen(port, () => { From fe80d88529e66e4036fdc3b8b782c8e01c084ad4 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 02:19:48 -0500 Subject: [PATCH 08/22] Update index.ts --- src/index.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index dca4d1d..3239905 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,16 +6,18 @@ import app from './app'; import fs from 'fs'; import path from 'path'; -const port = config.port!; -console.log("hey") -console.log(port) +// Use the PORT environment variable or fall back to a default (e.g., 3005) for local testing +const port = process.env.PORT || config.port || 3005; // Ensure to use process.env.PORT +console.log("hey"); +console.log(`Using port: ${port}`); const options = { key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('/etc/secrets/cert.pem') + cert: fs.readFileSync('/etc/secrets/cert.pem'), }; -https.createServer(options, app).listen(port, () => { +// Bind to 0.0.0.0 to ensure it works on Render's platform +https.createServer(options, app).listen(port, '0.0.0.0', () => { // Binding to 0.0.0.0 connectToDb(); - console.log(`Serveur en écoute sur :${port}`); -}) + console.log(`Serveur en écoute sur https://localhost:${port}`); +}); From e87e45382a45c6fc88aea17783d59b02f3b501ea Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 02:22:53 -0500 Subject: [PATCH 09/22] help me im so tired --- src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3239905..1246a67 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,8 +6,9 @@ import app from './app'; import fs from 'fs'; import path from 'path'; -// Use the PORT environment variable or fall back to a default (e.g., 3005) for local testing -const port = process.env.PORT || config.port || 3005; // Ensure to use process.env.PORT +// Use the PORT environment variable or fallback to config.port or 3005 for local testing +const port = Number(process.env.PORT) || Number(config.port) || 3005; // Convert to number + console.log("hey"); console.log(`Using port: ${port}`); From cc81eb056d215534625c8af2bd27bcd0a142ce17 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 02:48:58 -0500 Subject: [PATCH 10/22] Update index.ts --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1246a67..02cbde3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,16 +9,16 @@ import path from 'path'; // Use the PORT environment variable or fallback to config.port or 3005 for local testing const port = Number(process.env.PORT) || Number(config.port) || 3005; // Convert to number -console.log("hey"); -console.log(`Using port: ${port}`); +console.log("Starting the server..."); +console.log(`Server is running on port: ${port}`); const options = { key: fs.readFileSync('/etc/secrets/key.pem'), cert: fs.readFileSync('/etc/secrets/cert.pem'), }; -// Bind to 0.0.0.0 to ensure it works on Render's platform +// Ensure it listens on all network interfaces https.createServer(options, app).listen(port, '0.0.0.0', () => { // Binding to 0.0.0.0 connectToDb(); - console.log(`Serveur en écoute sur https://localhost:${port}`); + console.log(`Server is live on https://0.0.0.0:${port}`); }); From b6a83fab0712e71356cb5aa8a5255d99897793da Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 03:19:25 -0500 Subject: [PATCH 11/22] Update index.ts --- src/index.ts | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index 02cbde3..38c1428 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,19 +6,33 @@ import app from './app'; import fs from 'fs'; import path from 'path'; -// Use the PORT environment variable or fallback to config.port or 3005 for local testing -const port = Number(process.env.PORT) || Number(config.port) || 3005; // Convert to number +// Use the PORT environment variable that Render provides, or fallback to 3005 +const port = process.env.PORT || 3005; // Let Render define the port console.log("Starting the server..."); console.log(`Server is running on port: ${port}`); -const options = { - key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('/etc/secrets/cert.pem'), -}; +let options; +try { + // Reading SSL certificates, ensure the files are present + options = { + key: fs.readFileSync('/etc/secrets/key.pem'), + cert: fs.readFileSync('/etc/secrets/cert.pem'), + }; +} catch (err) { + console.error("Error reading SSL certificates:", err.message); + process.exit(1); // Exit the process if certificates cannot be loaded +} -// Ensure it listens on all network interfaces -https.createServer(options, app).listen(port, '0.0.0.0', () => { // Binding to 0.0.0.0 - connectToDb(); - console.log(`Server is live on https://0.0.0.0:${port}`); +// Ensure the server is set up to listen on all network interfaces +https.createServer(options, app).listen(port, '0.0.0.0', () => { + // Attempt to connect to the database + connectToDb() + .then(() => { + console.log(`Server is live on https://0.0.0.0:${port}`); + }) + .catch((dbError) => { + console.error("Failed to connect to MongoDB:", dbError.message); + process.exit(1); // Exit the process if the DB connection fails + }); }); From 18b68a0f7082ffe5294775dac58553c85239cca2 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 03:41:09 -0500 Subject: [PATCH 12/22] Update index.ts --- src/index.ts | 34 +++++----------------------------- 1 file changed, 5 insertions(+), 29 deletions(-) diff --git a/src/index.ts b/src/index.ts index 38c1428..acee93d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,33 +6,9 @@ import app from './app'; import fs from 'fs'; import path from 'path'; -// Use the PORT environment variable that Render provides, or fallback to 3005 -const port = process.env.PORT || 3005; // Let Render define the port +const port = config.port!; -console.log("Starting the server..."); -console.log(`Server is running on port: ${port}`); - -let options; -try { - // Reading SSL certificates, ensure the files are present - options = { - key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('/etc/secrets/cert.pem'), - }; -} catch (err) { - console.error("Error reading SSL certificates:", err.message); - process.exit(1); // Exit the process if certificates cannot be loaded -} - -// Ensure the server is set up to listen on all network interfaces -https.createServer(options, app).listen(port, '0.0.0.0', () => { - // Attempt to connect to the database - connectToDb() - .then(() => { - console.log(`Server is live on https://0.0.0.0:${port}`); - }) - .catch((dbError) => { - console.error("Failed to connect to MongoDB:", dbError.message); - process.exit(1); // Exit the process if the DB connection fails - }); -}); +http.createServer(app).listen(port, () => { + connectToDb(); + console.log(`Serveur en écoute sur :${port}`); +}) From e44b619499c5f0f723983794d0f2bc91e99bcac9 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 03:46:22 -0500 Subject: [PATCH 13/22] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index acee93d..5ba6ba6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import express from 'express'; import { config } from './config/config'; -import https from 'https'; +import http from 'http'; import connectToDb from './utils/mongodb.utils'; import app from './app'; import fs from 'fs'; From 10bd264aa37fda853853d71d41d6c72a89833105 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:27:13 -0500 Subject: [PATCH 14/22] Update index.ts --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 5ba6ba6..d2c5f11 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,6 +7,7 @@ import fs from 'fs'; import path from 'path'; const port = config.port!; +const serverHttp = config.serverHttp; http.createServer(app).listen(port, () => { connectToDb(); From 6074d04feedcca8fe2ab3f6751cfc2831c2ca69e Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:28:41 -0500 Subject: [PATCH 15/22] Update index.ts --- src/index.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index d2c5f11..34ee8a7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import express from 'express'; import { config } from './config/config'; import http from 'http'; +import https from 'https'; import connectToDb from './utils/mongodb.utils'; import app from './app'; import fs from 'fs'; @@ -9,7 +10,14 @@ import path from 'path'; const port = config.port!; const serverHttp = config.serverHttp; -http.createServer(app).listen(port, () => { - connectToDb(); - console.log(`Serveur en écoute sur :${port}`); -}) +if(serveurHttp){ + http.createServer(app).listen(port, () => { + connectToDb(); + console.log(`Serveur en écoute sur :${port}`); + }) +}else{ + https.createServer(app).listen(port, () => { + connectToDb(); + console.log(`Serveur en écoute sur :${port}`); + }) +} From 785d243f86ca26812a9572b5687eaf02d72755e8 Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:29:29 -0500 Subject: [PATCH 16/22] Update config.ts --- src/config/config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/config.ts b/src/config/config.ts index 101067f..c02fd7d 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -6,5 +6,6 @@ export const config = { port: process.env.PORT, nodeEnv: process.env.NODE_ENV, jwt_secret: process.env.JWT_SECRET, - mongo_uri: process.env.MONGO_URI -}; \ No newline at end of file + mongo_uri: process.env.MONGO_URI, + serverHttp: process.env.serverHttp +}; From 35920c020b30ef831069bb58b1bf27cc6e96019d Mon Sep 17 00:00:00 2001 From: 2060485 <120136410+2060485@users.noreply.github.com> Date: Wed, 18 Dec 2024 16:35:27 -0500 Subject: [PATCH 17/22] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 34ee8a7..e99fb36 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import fs from 'fs'; import path from 'path'; const port = config.port!; -const serverHttp = config.serverHttp; +const serverHttp = config.serverHttp!; if(serveurHttp){ http.createServer(app).listen(port, () => { From cd308139c4a2ea0a62c64684256a699a0307aeca Mon Sep 17 00:00:00 2001 From: 2060485 <2060485@collegemv.qc.ca> Date: Wed, 18 Dec 2024 16:39:19 -0500 Subject: [PATCH 18/22] test --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e99fb36..0e104ad 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ import path from 'path'; const port = config.port!; const serverHttp = config.serverHttp!; -if(serveurHttp){ +if(serverHttp){ http.createServer(app).listen(port, () => { connectToDb(); console.log(`Serveur en écoute sur :${port}`); From 2f80263f684cfb476ed07b2cf0edcc7547c68d68 Mon Sep 17 00:00:00 2001 From: 2060485 <2060485@collegemv.qc.ca> Date: Wed, 18 Dec 2024 17:09:55 -0500 Subject: [PATCH 19/22] wqe --- src/index.ts | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/src/index.ts b/src/index.ts index 0e104ad..776468c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,23 +1,18 @@ import express from 'express'; import { config } from './config/config'; -import http from 'http'; import https from 'https'; import connectToDb from './utils/mongodb.utils'; import app from './app'; import fs from 'fs'; -import path from 'path'; const port = config.port!; -const serverHttp = config.serverHttp!; -if(serverHttp){ - http.createServer(app).listen(port, () => { - connectToDb(); - console.log(`Serveur en écoute sur :${port}`); - }) -}else{ - https.createServer(app).listen(port, () => { - connectToDb(); - console.log(`Serveur en écoute sur :${port}`); - }) -} +const options = { + key: fs.readFileSync('/etc/secrets/key.pem'), + cert: fs.readFileSync('/etc/secrets/cert.pem') +}; + +https.createServer(options, app).listen(port, () => { + connectToDb(); + console.log(`Serveur en écoute sur :${port}`); +}) \ No newline at end of file From 18212d7b8bfb31b06f95a3c55b67708b8ef86aec Mon Sep 17 00:00:00 2001 From: 2060485 <2060485@collegemv.qc.ca> Date: Wed, 18 Dec 2024 17:15:05 -0500 Subject: [PATCH 20/22] http --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 776468c..b8c3874 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,7 @@ import express from 'express'; import { config } from './config/config'; import https from 'https'; +import http from 'http'; import connectToDb from './utils/mongodb.utils'; import app from './app'; import fs from 'fs'; @@ -12,7 +13,7 @@ const options = { cert: fs.readFileSync('/etc/secrets/cert.pem') }; -https.createServer(options, app).listen(port, () => { +http.createServer(app).listen(port, () => { connectToDb(); console.log(`Serveur en écoute sur :${port}`); }) \ No newline at end of file From 1aa2cf4bef342a439fe4e81498bc36b1b34803f7 Mon Sep 17 00:00:00 2001 From: 2060485 <2060485@collegemv.qc.ca> Date: Wed, 18 Dec 2024 17:54:58 -0500 Subject: [PATCH 21/22] try --- src/config/config.ts | 2 +- src/index.ts | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/config/config.ts b/src/config/config.ts index c02fd7d..70809e7 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -7,5 +7,5 @@ export const config = { nodeEnv: process.env.NODE_ENV, jwt_secret: process.env.JWT_SECRET, mongo_uri: process.env.MONGO_URI, - serverHttp: process.env.serverHttp + serverHttp: process.env.SERVER_HTTP, }; diff --git a/src/index.ts b/src/index.ts index b8c3874..77be25e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,13 +7,20 @@ import app from './app'; import fs from 'fs'; const port = config.port!; +const serverHttp = config.serverHttp!; -const options = { - key: fs.readFileSync('/etc/secrets/key.pem'), - cert: fs.readFileSync('/etc/secrets/cert.pem') -}; - -http.createServer(app).listen(port, () => { - connectToDb(); - console.log(`Serveur en écoute sur :${port}`); -}) \ No newline at end of file +if(serverHttp=="true"){ + http.createServer(app).listen(port, () => { + connectToDb(); + console.log(`Serveur en écoute sur `); + }) +}else{ + const options = { + key: fs.readFileSync('key.pem'), + cert: fs.readFileSync('cert.pem') + }; + https.createServer(options,app).listen(port, () => { + connectToDb(); + console.log(`Serveur en écoute sur `); + }) +} \ No newline at end of file From 8f37d7f301e1483c0fb8b2efe7918105bd4e975c Mon Sep 17 00:00:00 2001 From: 2060485 <2060485@collegemv.qc.ca> Date: Wed, 18 Dec 2024 19:48:16 -0500 Subject: [PATCH 22/22] fasdds --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 13b1109..4247aaa 100644 --- a/src/app.ts +++ b/src/app.ts @@ -10,7 +10,7 @@ import aggregationRoutes from './routes/aggregations.route'; const app = express(); const corsOptions = { - origin: ['http://localhost:3000', 'https://localhost:3005', 'http://localhost:4000'], + origin: ['http://localhost:3000', 'https://localhost:3005', 'https://fetest-3u7d.onrender.com'], }