Capítulo 165 de 988

Chapter 165: addBundleToSandbox()

Core Idea

:::warning Experimental package: We reserve the right to make breaking changes in order to correct bad design decisions until this notice is gone.

Key Concepts

  • Example
  • Arguments
  • sandbox
  • bundleDir
  • Return value
  • See also

Code Examples

// @module: es2022
// @target: es2022
const sandbox = await createSandbox();

await addBundleToSandbox({
  sandbox,
  bundleDir: '/path/to/bundle',
});

// ... use the sandbox

await sandbox.stop();
  • What it demonstrates: Usage pattern for addBundleToSandbox() from the official docs.

Key Takeaways

  1. Understand example when working with addBundleToSandbox().
  2. Understand arguments when working with addBundleToSandbox().
  3. Understand sandbox when working with addBundleToSandbox().
  4. Understand bundledir when working with addBundleToSandbox().
  5. Understand return value when working with addBundleToSandbox().

Connects To

  • Azure Container Apps: related page in the Deployment & Runtimes section.
  • bun: related page in the Deployment & Runtimes section.
  • Cloudflare Containers: related page in the Deployment & Runtimes section.