Skip to content

Bubble plugin · Data & APIs

The Bubble API Connector plugin in Next.js

Typed server-side functions in src/server/api-connector.ts.

Converts

By The deBub teamUpdated

On this page

01What it becomes

Typed server-side functions in src/server/api-connector.ts. Every call you configured in the API Connector becomes a server-side function. Calls used as data become data reads; calls used as actions become workflow steps. Private keys, headers and parameters move to environment variables, so they never reach the browser.

No extra npm package: the generated code uses React, Next.js and browser APIs only.

02What converts

  • Calls used as Data (“Get data from an external API”) and as Action (workflow steps)
  • Parameters, headers and bodies, with dynamic values from your app
  • Results of a call, used in later steps or on the page
  • Requests are pinned to the call’s own host

03What you set up

  • Copy the private keys and headers listed in .env.example into your hosting’s environment variables.

04About this plugin

API Connector is made by Bubble itself (API wrapper / data source + actions). See its page in the Bubble manual.

Questions

Does the API Connector plugin work outside Bubble?
Not as it is: Bubble plugins only run inside Bubble. In a Next.js app it is replaced by generated code — Typed server-side functions in src/server/api-connector.ts.
Will my API Connector settings carry over?
Yes. deBub reads the plugin’s settings, conditions and workflows from your .bubble export and converts all of the plugin’s parts. Secret keys are the exception: you add them as environment variables.

The deBub team

We build the Bubble → Next.js compiler behind deBub. Spotted something out of date? Write to hello@debub.io.

All 45 plugins

Toolbox

Not Quite Unicorns

Components and browser helpers; your own JavaScript runs in the browser as before

Partly converts · 9 of 10 parts

A React component that ships with your app: icons, toggle, range slider and checkbox

Converts

Chart.js

Bubble

A line/bar chart component drawn with Chart.js 1.1.1

Converts

An icon component using the Material Icons font

Converts

Leave Bubble.
Keep building.

The scan is free and shows your exact price. No card needed until you choose to generate.

Start with a free scan