Compare commits
2 Commits
23a1ebca32
...
1de815159a
Author | SHA1 | Date | |
---|---|---|---|
1de815159a | |||
cde31976f4 |
8
package-lock.json
generated
8
package-lock.json
generated
@ -12,7 +12,7 @@
|
||||
"devDependencies": {
|
||||
"@types/express": "5.0.3",
|
||||
"forking-build-shit": "1.0.0",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@parcel/watcher": {
|
||||
@ -1599,9 +1599,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.8.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
||||
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
||||
"version": "5.9.2",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz",
|
||||
"integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
|
@ -9,7 +9,7 @@
|
||||
"devDependencies": {
|
||||
"@types/express": "5.0.3",
|
||||
"forking-build-shit": "1.0.0",
|
||||
"typescript": "^5.8.3"
|
||||
"typescript": "^5.9.2"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npx build-shit",
|
||||
|
@ -53,7 +53,7 @@ app.get('/favicon.ico', (_, res) => {
|
||||
const sendPixel = (_: express.Request, res: express.Response) => {
|
||||
res.set('Cache-Control', 'private, max-age=31557600'); // one year
|
||||
visitCount++;
|
||||
res.sendFile(Path.join(import.meta.dirname, 'assets', 'images', 'webp', 'cache-me.webp'));
|
||||
res.sendFile(Path.resolve(import.meta.dirname, '..', 'assets', 'images', 'webp', 'cache-me.webp'));
|
||||
}
|
||||
|
||||
app.get('/cache-me.webp', sendPixel);
|
||||
@ -80,4 +80,4 @@ process.on('SIGTERM', async () => {
|
||||
await saveVisits();
|
||||
console.log('done. shutting down...');
|
||||
webserver.close();
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user