Usage
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 bothBundleAppConfig and BundleSiteConfig.
-
Type
-
Details
baseDir(optional): The base directory to bundle from.includeandexcludepatterns are resolved relative to it. Defaults to the location of theoverlayed.config.tsfile.include(required): String or array of string glob patterns to include in the bundle.package.jsonis always included, and the app bundle always includesnode_modules/@overlayed/app.exclude(optional): String or array of string glob patterns to exclude from the bundle. Theoverlayed.config.tsfile is always excluded from both bundles. The app bundle additionally excludes anyinstallerfolder; 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 appbaseDir. Set this if your dependencies live somewhere other than./node_modules(e.g. a hoisted monorepo root).resolvePackageVersion(optional): Fully override how the@overlayed/appand@overlayed/electronversions 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

