Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -8,7 +8,7 @@ const __filename = fileURLToPath(import.meta.url); // Get the current file's pat
|
|
| 8 |
const __dirname = path.dirname(__filename); // Get the current file's directory path
|
| 9 |
|
| 10 |
const app = express(); // Create a new Express.js application
|
| 11 |
-
const port = process.env.PORT ||
|
| 12 |
|
| 13 |
// CORS Configuration (Only allow your specific frontend origin)
|
| 14 |
const corsOptions = {
|
|
|
|
| 8 |
const __dirname = path.dirname(__filename); // Get the current file's directory path
|
| 9 |
|
| 10 |
const app = express(); // Create a new Express.js application
|
| 11 |
+
const port = process.env.PORT || 7860; // Set the port to use for the server (default: 3000)
|
| 12 |
|
| 13 |
// CORS Configuration (Only allow your specific frontend origin)
|
| 14 |
const corsOptions = {
|