Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: simplify review — res.set() consistency, Vary header, remove CJS globals from ESM lint config
Adam Eivy2a546684cb0b
diff --git a/client/eslint.config.js b/client/eslint.config.jsindex 38ee271e34..58eebc33cf 100644--- a/client/eslint.config.js+++ b/client/eslint.config.js@@ -37,10 +37,10 @@ const browserGlobals = {};const nodeGlobals = {+ // process/Buffer are injected by Vite for compatibility; global/setImmediate for some polyfillsprocess: 'readonly', Buffer: 'readonly', global: 'readonly',- __dirname: 'readonly', __filename: 'readonly',- require: 'readonly', module: 'writable', exports: 'writable',setImmediate: 'readonly', clearImmediate: 'readonly',+ // __dirname, __filename, require, module, exports omitted — not valid in ESM browser bundles};export default [diff --git a/server/index.js b/server/index.jsindex f43ec9073e..2d99a3f087 100644--- a/server/index.js+++ b/server/index.js@@ -193,10 +193,11 @@ initTaskLearning();// Middleware - allow any origin for Tailscale accessapp.use((req, res, next) => {- res.header('Access-Control-Allow-Origin', req.headers.origin || '*');- res.header('Access-Control-Allow-Methods', 'GET,POST,PUT,PATCH,DELETE,OPTIONS');- res.header('Access-Control-Allow-Headers', 'Content-Type,Authorization');- res.header('Access-Control-Allow-Credentials', 'true');+ res.set('Access-Control-Allow-Origin', req.headers.origin || '*');+ res.set('Access-Control-Allow-Methods', 'GET,POST,PUT,PATCH,DELETE,OPTIONS');+ res.set('Access-Control-Allow-Headers', 'Content-Type,Authorization');+ res.set('Access-Control-Allow-Credentials', 'true');+ res.set('Vary', 'Origin');if (req.method === 'OPTIONS') return res.sendStatus(204);next();});