Compare commits

..

2 Commits

Author SHA1 Message Date
nick 4566f3678d updated header i think 2026-01-29 05:50:31 -08:00
nick 0485559832 idk 2026-01-29 05:49:44 -08:00
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>valentines</title> <title>Will you be my valentine?</title>
</head> </head>
<body> <body>
<div id="root"></div> <div id="root"></div>
+17
View File
@@ -0,0 +1,17 @@
import express from "express";
import path from "path";
const app = express();
const PORT = process.env.PORT || 3000;
// Serve static files from dist
app.use(express.static(path.join(__dirname, "dist")));
// For React Router: always return index.html
app.get("*", (req, res) => {
res.sendFile(path.join(__dirname, "dist", "index.html"));
});
app.listen(PORT, () => {
console.log(`Server running at http://localhost:${PORT}`);
});