mirror of
https://github.com/actualbudget/actual.git
synced 2026-07-27 17:14:30 -05:00
e109d652b4
* [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>
10 lines
134 B
Bash
Executable File
10 lines
134 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
ROOT=`dirname $0`
|
|
cd "$ROOT/.."
|
|
|
|
export PORT=3001
|
|
export REACT_APP_BACKEND_WORKER_HASH="dev"
|
|
|
|
yarn start --mode=browser
|