feat: implement self-hostable mode with server-side directory scanning

This commit is contained in:
ergosteur
2026-03-07 00:59:31 -05:00
parent ee87e9b523
commit afacc61888
4 changed files with 383 additions and 115 deletions
+5 -1
View File
@@ -64,8 +64,12 @@ export default defineConfig(({mode}) => {
},
server: {
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
// Do not modifyfile watching is disabled to prevent flickering during agent edits.
hmr: process.env.DISABLE_HMR !== 'true',
proxy: {
'/api': 'http://localhost:3001',
'/archives': 'http://localhost:3001',
},
},
};
});