Skip to content

Packages and Environment Variables

Manage environment variables, packages, and build-time project configuration

Open Settings in the main menu and choose Packages, Environment Variables, or, for apps imported from Draftbit Classic, Variables. Older docs, screenshots, or app versions may call this area Build Config or Environments.

These sections of Settings are where you manage the settings that affect how your app is built and how the AI agent works with your project dependencies. It brings Packages, Environment Variables, and legacy Variables for imported apps into one place.

The Packages section of Settings

Settings has these build sections:

SectionPurpose
PackagesEdit dependencies and devDependencies from your app’s package.json.
Environment VariablesAdd and manage environment variables for development, staging, and production.
VariablesEdit legacy global variables for apps imported from Draftbit Classic. This section only appears for imported apps that use those variables.

The Packages section lets you edit your app’s npm dependencies without opening package.json manually.

It has two sections:

SectionDescription
StandardThird-party libraries your app needs to run. These are installed when your app is built and are available to your code.
DevelopmentLibraries used during development that are not shipped with production versions of your app.

For each package, you can edit the package name or version inline, remove the package, or add a new row with a package name and version.

The Environment Variables section holds values your app reads at build time or runtime, such as API URLs, public keys, and feature flags. Each variable can have its own value in Development, Staging, and Production.

The Environment Variables section of Settings

See Environment Variables for which environment each preview, build, and publish uses, the prefix for each app type, Plain text and Sensitive visibility, and how to add, edit, and delete variables.

Apps imported from Draftbit Classic may include legacy global variables. Settings gives those apps a Variables section to review and edit the imported runtime values across environments without hand-editing the generated files.