mirror of
https://github.com/actualbudget/actual.git
synced 2026-05-08 04:49:45 -05:00
* [AI] Refactor IS_GENERIC_BROWSER env var to --mode=browser Replace the IS_GENERIC_BROWSER environment variable with Vite's built-in --mode=browser flag to distinguish browser builds from Electron builds. This aligns with the existing --mode=desktop pattern used for Electron production builds. Also fix build-shims.js to derive NODE_ENV from import.meta.env.DEV instead of import.meta.env.MODE, so custom modes don't leak into process.env.NODE_ENV. https://claude.ai/code/session_014HvkpR59Ke4eUoiUzsUruv * Add release notes for PR #7466 * [AI] Fix COOP/COEP headers not set with --mode=browser The server.headers config was gated on mode === 'development', which excluded --mode=browser. Since server.headers only applies during vite serve (not builds), always set the COOP/COEP headers. These are required for SharedArrayBuffer support used by the SQLite backend. https://claude.ai/code/session_014HvkpR59Ke4eUoiUzsUruv --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>