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 41e7c5e206
commit e23dfe4474
4 changed files with 383 additions and 115 deletions

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',
},
},
};
});