Compare commits

...

2 Commits

Author SHA1 Message Date
nick 0837acad35 changed icon 2026-01-29 05:57:40 -08:00
nick f428af0d35 fixed server 2026-01-29 05:55:49 -08:00
3 changed files with 42 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<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="/heart.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Will you be my valentine?</title> <title>Will you be my valentine?</title>
</head> </head>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
version="1.1"
width="130"
height="130"
id="svg2">
<metadata
id="metadata10">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs8" />
<path
d="M 65,29 C 59,19 49,12 37,12 20,12 7,25 7,42 7,75 25,80 65,118 105,80 123,75 123,42 123,25 110,12 93,12 81,12 71,19 65,29 z"
id="path4"
style="fill:#ff0707" />
</svg>

After

Width:  |  Height:  |  Size: 923 B

+9 -3
View File
@@ -1,14 +1,20 @@
// server.js
import express from "express"; import express from "express";
import path from "path"; import path from "path";
import { fileURLToPath } from "url";
const app = express(); const app = express();
const PORT = process.env.PORT || 3000; const PORT = process.env.PORT || 3000;
// Serve static files from dist // Fix __dirname in ES modules
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
// Serve static files from Vite build
app.use(express.static(path.join(__dirname, "dist"))); app.use(express.static(path.join(__dirname, "dist")));
// For React Router: always return index.html // React Router fallback: send index.html for any unmatched route
app.get("*", (req, res) => { app.get(/.*/, (req, res) => {
res.sendFile(path.join(__dirname, "dist", "index.html")); res.sendFile(path.join(__dirname, "dist", "index.html"));
}); });