Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## 🌐 Live Demo

👉 [Click here to explore VehiGo](https://vehigo-orpin.vercel.app/)
👉 [Click here to explore VehiGo](https://vehigo-l38q78iw6-piyusha-chopras-projects.vercel.app)

![-----------------------------------------------------](https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png)

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<title>Vehigo — Seamless Rentals, Endless Adventures</title>

<!-- Icons & Fonts -->
<link rel="icon" href="favicon.svg" />
<link rel="icon" href="public/favicon.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
Expand Down
6 changes: 5 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());

// Serve static files (css, js, images, etc.)
app.use(express.static(path.join(__dirname,'src')));
app.use(express.static(path.join(__dirname,'assets')));
app.use(express.static(path.join(__dirname,'images')));
app.use(express.static(path.join(__dirname,'public')));
app.use(express.static(path.join(__dirname)));

// Serve index.html at root
app.get("/", (req, res) => {
res.sendFile(path.join(__dirname, "index.html"));
res.sendFile(path.join(__dirname, "src","index.html"));
});

// Serve login page from src/pages directory
Expand Down