Skip to content

Build a connector

As you develop your integration, you may need to build your connector.

Typically, you only need to run the build command for your connector when you want to test. Netlify will build your connector for you as part of the publishing process, and the command to run your connector locally already includes a build step.

To bundle and build your connector run:

pnpm run build

When the build is complete, the utility tools output the build to a .ntli folder in the current working directory of your terminal.

We recommend that you add the .ntli directory to your .gitignore file, along with .cache, dev-model.gql, and node_modules.

.ntli
.cache
node_modules
dev-model.gql

Assets

To include static file assets in your bundled connector, add them to a src/assets directory. All assets in this directory are automatically copied into the .ntli directory during the build.