Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
techroy23 authored Apr 19, 2024
1 parent b68a93f commit 27c7c10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import express from 'express';
import path from 'path';
import os from 'os';
import 'dotenv/config'; // Load environment variables from .env


// Initialize Express app
const app = express();

// Configuration settings
// TODO const PORT = import.meta.env.VITE_PORT || 5173;
const PORT = 5173;
const PORT = process.env.VITE_PORT || 5173; // get VITE_PORT value from .env
const DIST_DIR = path.join(__dirname, '../dist');
const INDEX_FILE = path.join(DIST_DIR, 'index.html');

Expand Down

0 comments on commit 27c7c10

Please sign in to comment.