Hosting
Publish a generated frontend to a unique URL with preview and production environments, versioned builds, rollback, availability checks and a strict Content-Security-Policy.
Publishing#
Publishing builds the project's current files into a self-contained bundle and serves it at /apps/<slug> (production) or /apps/<slug>/preview (preview). Each publish creates a numbered application version and costs 1 hosting credit; the credit is refunded if the build fails.
- One hosted app per project, with a globally unique slug derived from the project name.
- Only the project owner can publish. Archived projects must be unarchived first.
- A project with no files cannot be published — generate it first or export the package.
Environments, versions and rollback#
Preview and production each point at an application version. Rolling back (or promoting) points an environment at an earlier successful version of the same app — no rebuild, no new credit charge.
| Shown per version | |
|---|---|
| Status | building, ready or failed |
| Build | Duration, bundle size, error count, logs |
| Source | Project version number and network |
| Configuration | Which PUBLIC_* keys were compiled in (names only) and which API origins the CSP allows |
Isolation and Content-Security-Policy#
Hosted apps are served with a strict policy. They can talk to the verified network RPC endpoints and to https origins the app declares in blueprint.json — nothing else, and never Blueprint's own API.
{
"name": "Members Hub",
"network": "elysium-testnet",
"externalApis": ["https://api.example.org"]
}default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline';
img-src data: https:; connect-src <network RPC origins> <declared origins>;
frame-ancestors 'none'; form-action 'none'; base-uri 'none'- Declared origins must be public https hosts — localhost, private ranges and the platform origin are rejected and listed as rejected on the version.
- When apps are served from the platform's own origin, the policy also applies
sandboxwithoutallow-same-origin, so the app runs in an opaque origin. Operators should setBLUEPRINT_APPS_ORIGINto a separate domain for production hosting:/apps/*then redirects there, the apps origin serves nothing but hosted apps (no Blueprint pages, APIs or session cookie), and the sandbox is dropped so wallets see a real origin. - Responses also send
nosniff,no-referrer, a restrictive Permissions-Policy andno-store.
Environment variables#
Builds receive only variables whose names start with PUBLIC_. Private variables are encrypted at rest and never reach a build, the AI or admins. Manage them in the Developer Console. Details: Security model.
Monitoring and limits#
- Availability self-checks per environment (HTTP status and latency), on demand and cached.
- Requests, unique visitors (hashed, no raw IP or user agent stored), bandwidth and errors are rolled up daily from real serves.
- Custom domains are not supported yet.
- If hosting is unavailable to you, export the project from the Developer Console and deploy the static bundle anywhere.
