Skip to main content

Usage

The following properties are available on the OverlayedConfig interface.

applicationId

Your Overlayed application ID, from the Overlayed Dashboard. Must be a valid ULID. defineConfig throws at load time if it isn’t.
  • Type

app

The bundle config for your Electron app.
  • Type

site

The optional bundle config for your site.
  • Type

bundle config

Shared fields for both BundleAppConfig and BundleSiteConfig.
  • Type
  • Details
    • baseDir (optional): The base directory to bundle from. include and exclude patterns are resolved relative to it. Defaults to the location of the overlayed.config.ts file.
    • include (required): String or array of string glob patterns to include in the bundle. package.json is always included, and the app bundle always includes node_modules/@overlayed/app.
    • exclude (optional): String or array of string glob patterns to exclude from the bundle. The overlayed.config.ts file is always excluded from both bundles. The app bundle additionally excludes any installer folder; the site bundle does not, so exclude it explicitly there if needed.

app bundle config

BundleAppConfig adds fields used only when building the app bundle - these control how the installed versions of @overlayed/app and @overlayed/electron are resolved for the release.
  • Type
  • Details
    • nodeModulesDir (optional): Where to look for installed package versions, relative to the app baseDir. Set this if your dependencies live somewhere other than ./node_modules (e.g. a hoisted monorepo root).
    • resolvePackageVersion (optional): Fully override how the @overlayed/app and @overlayed/electron versions are determined. Return the semver string for the given package name.

resolveCommitHash

Override the default commit hash resolution (git rev-parse HEAD) attached to each upload. Return undefined to omit the commit hash entirely - useful when bundling outside a git checkout.
  • Type

debug

Debug mode is enabled by passing the --debug flag to the CLI (overlayed bundle --debug), not by this field. When active:
  • Extra logs will occur
  • The bundles will be written to .overlayed/tmp/ as a zip instead of uploading to the Overlayed platform
  • Type
  • Default: false