METEOR_DISABLE_OPTIMISTIC_CACHING
is an environment variable.
You can set it in three ways:
- system-wide in control panel
- for a specific shell by using
SET METEOR_DISABLE_OPTIMISTIC_CACHING=1
in a command prompt before running meteor. Easiest to use in a .bat
file
- in an npm script using the
cross-env
package
I recommend using cross-env
. First meteor npm install --save cross-env
Then add a start script to package.json
:
"scripts": {
"start": "cross-env METEOR_DISABLE_OPTIMISTIC_CACHING=1 meteor run"
}
now when you run npm start
it will set the environment variable just for that one running instance of meteor