swagbot300
swagbot3007mo ago

Questions on environment variables and external packages.

I understand how to set keys in the online gui, but how do i use keys on my local machine? Do I just make an .env file? In addition I am also trying to use external node packages. I know I have to stick "use node" as a header at the top of the file, but to install the packages do I do a typical npm install [package name] installation or is there a proprietary way convex goes about this?
1 Reply
ballingt
ballingt7mo ago
Development n your local machine still uses the cloud deployment so you set these in the GUI (or CLI) You don't need "use node" unless the npm package you use uses node.js-specific features like "fs". Nope nothing special, just install with npm and import.

Did you find this page helpful?