You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Features
Reflex should work in a completely offline environment or be able to use private pypi/npm repositories.
Additional context
My current work environment doesn't allow direct internet connection. We have only access to the internal proxy repositories based on Sonatype Nexus, so I'm able to install Reflex but can't init new project because Reflex tries to connect to the Internet.
Edit: I can recreate ~/.local/share/reflex directory structure with bun/fnm/nodejs in correct versions manually. What is needed is a parametrized init that allows to specify internal npm repository for the web directory initialization.
The text was updated successfully, but these errors were encountered:
Install Refelx on an online computer and initialize temporary project. This will create a ~/.local/share/reflex directory with required dependencies installed. Move that directory to the offline computer using a USB stick, for example.
Install Rerflex on your offline computer using an internal pypi proxy.
Initialize new project with REFLEX_CHECK_LATEST_VERSION=False reflex init and blank template. That will skip version check and dependencies installation but will fail web directory initialization.
Create <project_dir>/.web/.npmrc file with registry configuration pointing at your internal npm registry proxy.
Run Reflex project with reflex run. This will install frontend dependencies using registry configured in .npmrc and properly build the web interface.
You can use NPM_CONFIG_REGISTRY to set a specific NPM registry. As for PyPi, as you said, REFLEX_CHECK_LATEST_VERSION works. Otherwise, you can use REFLEX_USE_SYSTEM_BUN and REFLEX_USE_SYSTEM_NODE to avoid network connections. Lastly, if it causes issues, you can disable telemetry through TELEMETRY_ENABLED. I believe that's basically all of the network stuff that we call on init and run.
Describe the Features
Reflex should work in a completely offline environment or be able to use private pypi/npm repositories.
Additional context
My current work environment doesn't allow direct internet connection. We have only access to the internal proxy repositories based on Sonatype Nexus, so I'm able to install Reflex but can't
init
new project because Reflex tries to connect to the Internet.Edit: I can recreate
~/.local/share/reflex
directory structure withbun
/fnm
/nodejs
in correct versions manually. What is needed is a parametrizedinit
that allows to specify internalnpm
repository for the web directory initialization.The text was updated successfully, but these errors were encountered: