Skip to content

deploy deprecation notice #1972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/bin/observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ try {
build generate a static site
login sign-in to Observable
logout sign-out of Observable
deploy deploy an app to Observable
deploy deploy an app to Observable [deprecated]
whoami check authentication status
convert convert an Observable notebook to Markdown
help print usage information
Expand Down
11 changes: 8 additions & 3 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ type DeployTargetInfo =
| {create: true; workspace: {id: string; login: string}; projectSlug: string; title: string; accessLevel: string}
| {create: false; workspace: {id: string; login: string}; project: GetProjectResponse};

/** Deploy a project to ObservableHQ */
export async function deploy(deployOptions: DeployOptions, effects = defaultEffects): Promise<void> {
Telemetry.record({event: "deploy", step: "start", force: deployOptions.force});
effects.clack.intro(`${inverse(" observable deploy ")} ${faint(`v${process.env.npm_package_version}`)}`);

effects.clack.log.warn(
wrapAnsi(
`Deploying data apps to Observable Cloud is now deprecated. Please migrate your data app to another static site hosting provider, such as GitHub Pages, Render, Cloudflare Pages, Vercel, or Netlify. For more details, please see: ${underline(
"https://observablehq.com/release-notes/2025-04-15-deprecating-observable-cloud"
)}`,
effects.outputColumns
)
);
const deployInfo = await new Deployer(deployOptions, effects).deploy();

effects.clack.outro(`Deployed app now visible at ${link(deployInfo.url)}`);
Telemetry.record({event: "deploy", step: "finish"});
}
Expand Down