Compare commits

..

No commits in common. "1de815159ad8462d0ae9f08456cd4cb9e07917d8" and "23a1ebca32835bd22e18368e9069e191bf424c59" have entirely different histories.

3 changed files with 7 additions and 7 deletions

8
package-lock.json generated
View File

@ -12,7 +12,7 @@
"devDependencies": { "devDependencies": {
"@types/express": "5.0.3", "@types/express": "5.0.3",
"forking-build-shit": "1.0.0", "forking-build-shit": "1.0.0",
"typescript": "^5.9.2" "typescript": "^5.8.3"
} }
}, },
"node_modules/@parcel/watcher": { "node_modules/@parcel/watcher": {
@ -1599,9 +1599,9 @@
} }
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "5.9.2", "version": "5.8.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
"dev": true, "dev": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"bin": { "bin": {

View File

@ -9,7 +9,7 @@
"devDependencies": { "devDependencies": {
"@types/express": "5.0.3", "@types/express": "5.0.3",
"forking-build-shit": "1.0.0", "forking-build-shit": "1.0.0",
"typescript": "^5.9.2" "typescript": "^5.8.3"
}, },
"scripts": { "scripts": {
"build": "npx build-shit", "build": "npx build-shit",

View File

@ -53,7 +53,7 @@ app.get('/favicon.ico', (_, res) => {
const sendPixel = (_: express.Request, res: express.Response) => { const sendPixel = (_: express.Request, res: express.Response) => {
res.set('Cache-Control', 'private, max-age=31557600'); // one year res.set('Cache-Control', 'private, max-age=31557600'); // one year
visitCount++; visitCount++;
res.sendFile(Path.resolve(import.meta.dirname, '..', 'assets', 'images', 'webp', 'cache-me.webp')); res.sendFile(Path.join(import.meta.dirname, 'assets', 'images', 'webp', 'cache-me.webp'));
} }
app.get('/cache-me.webp', sendPixel); app.get('/cache-me.webp', sendPixel);
@ -80,4 +80,4 @@ process.on('SIGTERM', async () => {
await saveVisits(); await saveVisits();
console.log('done. shutting down...'); console.log('done. shutting down...');
webserver.close(); webserver.close();
}); });