fluxy-bot 0.5.14 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/supervisor/index.ts +8 -0
package/package.json
CHANGED
package/supervisor/index.ts
CHANGED
|
@@ -170,6 +170,14 @@ export async function startSupervisor() {
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
+
// Service worker — served directly with no-cache to ensure push handler updates
|
|
174
|
+
if (req.url === '/sw.js') {
|
|
175
|
+
const swPath = path.join(PKG_DIR, 'workspace', 'client', 'public', 'sw.js');
|
|
176
|
+
res.writeHead(200, { 'Content-Type': 'application/javascript', 'Cache-Control': 'no-cache' });
|
|
177
|
+
res.end(fs.readFileSync(swPath));
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
|
|
173
181
|
// App API routes → proxy to user's backend server
|
|
174
182
|
if (req.url?.startsWith('/app/api')) {
|
|
175
183
|
const backendPath = req.url.replace(/^\/app\/api/, '') || '/';
|