Repository navigation
Install templates with static assets and ship connector logos - #256
Merged
Merged
Conversation
Template installs from the catalog now deploy static assets as `widefleet deploy` does. The control plane reads the asset directory from the template's wrangler.jsonc, keeps its files out of the builder's sources, uploads them to the deployment's upload session and publishes the manifest. Asset limits follow the CLI. Template files are fetched as bytes, so binary assets stay intact. The app builder accepts the assets configuration and, as the CLI does, gives an app with static assets a URL. The GitHub, Gmail and OneDrive templates ship their logo as public/favicon.svg and link it from their pages.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 90e3618 | Nov 21 2026, 10:19 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Templates installed from the catalog cannot ship static assets. The app builder rejects a Wrangler file with
assets("Projects with static assets are deployed with the Widefleet CLI"), and the control plane read template files as text, which corrupts binary files. So the connector templates have no favicon, and the app list, My connections and the catalogs cannot show their logos.Change
Template installs deploy static assets as
widefleet deploydoes.assets.directoryandassets.bindingfrom the template'swrangler.jsonc. Files in that directory stay out of the builder's sources. They become the asset manifest, with the Wrangler-compatible hash. The control plane uploads missing files to the deployment's upload session through the same path the CLI uses, then publishes with the configured binding..assetsignorerules are rejected, as the CLI rejects them. Source maps inside the asset directory are rejected with a clear message; the CLI attaches them to debug metadata, which template installs do not yet do.The app builder accepts the assets configuration.
web: true).The GitHub, Gmail and OneDrive templates ship their logo. Each has
public/favicon.svgand links it from its pages. The GitHub mark switches to a light fill in dark mode.Tests
template-project.test.tscovers code and asset separation, binary bytes, deduplication and the rejected cases.public/, and that the artifact manifest and storage hold the favicon.web: true.pnpm check, all unit and integration tests, and the builder suite (RUN_BUILDER_TESTS=1).Showing the logos follows in the next PR of this stack.


Confidence Score: 5/5
The PR appears safe to merge; the previous asset-settings issue is fixed.Summary
Template installs now keep binary assets intact, separate them from builder sources, and upload them before publishing. The connector templates also ship favicons.
Reviews (2) · Last reviewed commit: "Reject asset settings the upload cannot ..." · Reviewed by Greptile