From 06dd581fc3273a5bfb07dc825ed9c33cdc446885 Mon Sep 17 00:00:00 2001 From: kangfenmao Date: Thu, 24 Jul 2025 15:00:54 +0800 Subject: [PATCH] chore(env): add .env.example file and update .gitignore - Introduced a new .env.example file with NODE_OPTIONS configuration. - Updated .gitignore to exclude .env.example from being ignored. - Added instructions in dev.md for copying .env.example to .env. --- .env.example | 1 + .gitignore | 1 + docs/dev.md | 6 ++++++ src/renderer/src/pages/home/Tabs/index.tsx | 1 + 4 files changed, 9 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000..6d0410951d --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +NODE_OPTIONS=--max-old-space-size=8000 diff --git a/.gitignore b/.gitignore index 29e36a9fc8..5524944099 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ stats.html # ENV .env .env.* +!.env.example # Local local diff --git a/docs/dev.md b/docs/dev.md index 9a781314a9..721f557245 100644 --- a/docs/dev.md +++ b/docs/dev.md @@ -31,6 +31,12 @@ corepack prepare yarn@4.6.0 --activate yarn install ``` +### ENV + +```bash +copy .env.example .env +``` + ### Start ```bash diff --git a/src/renderer/src/pages/home/Tabs/index.tsx b/src/renderer/src/pages/home/Tabs/index.tsx index 0225d9e08a..f4190f192a 100644 --- a/src/renderer/src/pages/home/Tabs/index.tsx +++ b/src/renderer/src/pages/home/Tabs/index.tsx @@ -188,6 +188,7 @@ const CustomTabs = styled.div` padding: 6px 0; border-bottom: 1px solid var(--color-border); background: transparent; + -webkit-app-region: no-drag; [navbar-position='top'] & { padding-top: 2px; }