Skip to content

Commit 4a5bf01

Browse files
authored
Merge pull request #3227 from OpenNeuroOrg/vite-config-update
Vite config update
2 parents 6278e53 + e56253f commit 4a5bf01

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ GOOGLE_CLIENT_SECRET=
3333

3434
[podman-compose](https://github.com/containers/podman-compose) is used to run a local copy of all required services together.
3535

36+
37+
38+
macOS Development Setup - If you're working on macOS and encounter issues with file watching in Vite, use the following environment variables (in config.env):
39+
40+
```
41+
CHOKIDAR_USEPOLLING=true
42+
```
43+
3644
```shell
3745
# This will run podman-compose in the background (-d flag is --detach)
3846
podman-compose up -d

config.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ ORCID_API_ENDPOINT=https://api.sandbox.orcid.org
1818
GLOBUS_CLIENT_ID=
1919
GLOBUS_CLIENT_SECRET=
2020

21+
# macOS Development Setup - Fixes issues with Vite file watching - set to CHOKIDAR_USEPOLLING=true
22+
CHOKIDAR_USEPOLLING=false
23+
CHOKIDAR_INTERVAL=1000
24+
2125
# Relay for enabling mail - leave blank to disable email
2226
CRN_SERVER_MAIL_API_KEY=
2327
CRN_SERVER_MAIL_API_SECRET=

0 commit comments

Comments
 (0)