Kombai allows you to run the code in a sandbox environment. Once the code is generated, you can run the code or configure the sandbox.

Run in Sandbox

Post code-generation, follow the steps below to run the code in sandbox:
  1. Click Run in Sandbox button.
  2. Once the server starts running, go to the localhost server.
  3. Fix console errors, if any.

Configure sandbox

Kombai lets you configure the sandbox to closely replicate the app’s real-world conditions. Through Configure Sandbox, you can:
  • Add environment variables: Kombai allows you to add environment variables within the sandbox.
  • Add wrapper components: Kombai allows you to configure specific providers that are required to run your components.
To configure the sandbox, follow the steps below:
  1. Click Quick Settings icon in Kombai’s input box.
  2. Click Configure sandbox.

Fix TS and linting errors

Kombai auto-fixes any TS and linting errors after the code is generated. To disable auto-fix for TS, and linting errors, follow the steps below:
  1. Click icon in Kombai’s input box.
  2. Switch the Auto-fix errors setting off.

Send error to Kombai

If there are console errors in the sandbox preview, you can send them back to Kombai. Follow the steps below to send errors to Kombai:
  1. Click the Kombai logo on the bottom-right of the localhost preview.
  2. Click Send Error to Kombai.