novinzodevelopers
Plugins

Deployment

Build locally with Wrangler and coordinate hosted staging, bindings and production promotion with Novinzo.

You own your Worker code and local development project. Novinzo owns hosting, catalog changes, platform bindings and production promotion.

There is no public self-service plugin upload API. A normal deployment to your Cloudflare account does not register a plugin with Novinzo. A store owner's own plugin is the exception: its repository deploys it with @emergente-labs/plugin-cli, as Your own plugins describes, and this page does not apply to it.

Running a deploy

Use public Wrangler tooling in your standalone project.

Start with the quickstart, then run these commands from your project directory:

npm install --save-dev wrangler
npx wrangler dev --local

The local server tests your HTTP handlers without Novinzo's repository or production credentials. It does not provide platform-issued invocation tokens.

Prepare an upload bundle without publishing it:

npx wrangler deploy --dry-run --outdir dist

Send Novinzo your code, build instructions and configuration requirements. Coordinate hosted staging before requesting production promotion.

Use Local development for local request testing. Use Testing for hosted integration coverage.

How deploy discovers your Worker

Novinzo integrates your standalone Worker into its deployment configuration. Your local project does not need a particular repository layout.

Provide the agreed plugin code, Worker entrypoint, compatibility date and runtime dependencies. Include these requirements:

  • The CORE_FOR_PLUGINS service binding for platform HTTP calls.
  • The backend service binding if you call backend RPCs.
  • Storage binding names, environment-specific resources and migration files.
  • Static asset bindings and build output when your plugin serves assets.
  • Plugin-owned secret names and a secure provisioning plan.
  • Timed work, as an hourly-tick subscription rather than a cron trigger: the tick reaches each store that installed the plugin, and names it.
  • Supported HTTP routes and dependency-aware GET /health behavior.

Novinzo configures platform routing and preview health coverage. Resource creation and binding changes are not public author-side operations.

Plugin Workers have no public URL. Keep these settings in the hosted configuration:

{
  "workers_dev": false,
  "preview_urls": false,
}

These settings do not disable the local Wrangler development server.

Novinzo names the hosted Workers after the catalog code. Agree on the code before provisioning resources.

Preview upload and promotion

A preview is a candidate outside normal routing. Novinzo uploads it and probes GET /health before promotion. Normal store traffic continues reaching the live Worker.

Promotion publishes the candidate as the live Worker immediately, rather than staging an inactive version.

Your health route reports required storage and service availability without changing store data. It does not need a store-scoped invocation.

The preview receives no secrets; only the promoted Worker does. GET /health must therefore answer without reading any secret.

Core-for-plugins exposes a health route separately from its authenticated store APIs. Do not call store APIs from health probes.

Phase order

The hosted release sequence matters even though Novinzo runs it:

Novinzo reviews environment configuration, bindings, resources and secrets before uploads.

Novinzo provisions required resources, rehearses database migrations and builds the candidate.

Novinzo uploads the plugin under its preview name without redirecting normal traffic.
Novinzo applies database migrations while the previous Worker remains live.
Platform health probes exercise configured plugin previews and required dependencies.
Novinzo promotes plugin scripts before activating their platform consumers.

A release that fails, in its upload, health checks or smoke tests, is rolled back. Your plugin goes back to the code and settings it ran before, along with the platform Workers; a plugin new to the release has nothing to go back to and stays. Its secret values and static assets stay as the release left them, and so do database migrations already applied. Novinzo can also return production to an earlier release the same way.

Keep the new plugin compatible with the currently live platform, and keep the previous plugin working against the migrated database, because a rollback can run either of them on it.

D1 migrations

Include your D1 migration files and required binding names in the deployment handoff. Novinzo provisions hosted databases and applies hosted migrations.

For local development, declare your own database configuration:

wrangler.jsonc excerpt
{
  "d1_databases": [
    {
      "binding": "DB",
      "database_name": "acme-local",
      "migrations_dir": "./migrations",
    },
  ],
}

Wrangler 4 needs no database_id for a local database, so leave it out rather than invent one. Novinzo supplies hosted resource configuration during integration.

Apply your project's SQL migrations locally:

npx wrangler d1 migrations apply acme-local --local

Keep migrations additive until no deployed version reads the old schema. Hosted migrations run before plugin promotion, so both versions need compatible storage.

Platform changes for a new plugin

Coordinate these changes with Novinzo before hosted testing:

ChangeAuthor inputNovinzo responsibility
Catalog registrationCode, name, permissions, flags and webhook subscriptions.Register the plugin and enable capabilities in a safe order.
Plugin routingSupported admin, storefront, webhook, function and asset routes.Configure platform dispatch and local integration bindings.
Platform callsRequired core-for-plugins and backend bindings.Provision service bindings and platform invocation support.
StorageResource types, binding names and migrations.Provision environment-specific hosted resources.
Preview healthDependency probes and expected failure behavior.Include the candidate in hosted preview health coverage.
Production releaseTested candidate and backward-compatible rollback plan.Promote the hosted Worker and coordinate platform activation.

Registration describes the catalog fields and seller installation flow. A deployed script alone is not installable.

Secrets

Novinzo owns invocation-token signing secrets. Never request one or place one in your Worker.

Every platform invocation carries x-novinzo-plugin-invocation. Forward it unchanged when calling core-for-plugins or the backend.

The signed token identifies the plugin and store in every environment. Binding props do not authorize platform access.

Keep plugin-owned local secrets in an uncommitted .dev.vars file. Coordinate hosted secret provisioning separately for staging and production.

Do not send plaintext secrets in source archives or logs. Hosted credentials are not prerequisites for author-side development.

Ordering hazards

  • Deploy admin handlers before enabling hasAdminScreens or adminSlots in the catalog.
  • Deploy webhook handlers before enabling their subscriptions.
  • Keep database migrations compatible with the previous Worker until promotion completes.
  • Keep promoted code compatible with the live platform, even when a platform activation fails.
  • Coordinate preview routing and health coverage together so probes reach an uploaded candidate.
  • Keep a rollback version that supports every already-enabled catalog capability.

Requests into store APIs require a valid current platform invocation. Scheduled jobs do not receive independent store access.

Next steps

On this page