publish

Beta

publish

Publish the project in its current form.

framer.publish(): Promise<PublishResult

On a branch, this updates the branch deployment without affecting production. On the main branch, this publishes to staging when staging is enabled; otherwise, it publishes directly to production. The returned deployment carries its initial status snapshot. Use getDeployment() to refresh that snapshot while it is pending or optimizing; publishing does not wait for optimization.

Check framer.isAllowedTo("publish") before calling this method.

Returns

  • Promise<PublishResult> – The created deployment with its initial status snapshot and the hostnames it was published to.