Base-Skeleton=Axis
This commit is contained in:
11
.claude/launch.json
Normal file
11
.claude/launch.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"version": "0.0.1",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "appRobotHoming",
|
||||
"runtimeExecutable": "node",
|
||||
"runtimeArgs": ["server/server.js"],
|
||||
"port": 2093
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -27,6 +27,12 @@ const HTTPS_KEY_PATH = process.env.HTTPS_KEY_PATH || path.join(__dirname, '..',
|
||||
const HTTPS_CERT_PATH = process.env.HTTPS_CERT_PATH || path.join(__dirname, '..', 'https', 'localhost.pem');
|
||||
const HTTPS_PASSPHRASE = process.env.HTTPS_PASSPHRASE || 'abcd';
|
||||
|
||||
// .html/.js immer revalidieren lassen (kein stilles Stale-Caching durch Browser/Proxy
|
||||
// nach Code-Änderungen, z.B. boardViewer.html) – Bilder/STL etc. bleiben normal cachebar.
|
||||
app.use((req, res, next) => {
|
||||
if (/\.(html|js)$/.test(req.path)) res.setHeader('Cache-Control', 'no-cache');
|
||||
next();
|
||||
});
|
||||
app.use(express.static(publicDir));
|
||||
|
||||
app.get('/api/health', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user