Skip to content

Commit 1475651

Browse files
authored
deploy deprecation notice (#1972)
* deploy deprecation notice * avoid period confusion
1 parent 8841d01 commit 1475651

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/bin/observable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ try {
8181
build generate a static site
8282
login sign-in to Observable
8383
logout sign-out of Observable
84-
deploy deploy an app to Observable
84+
deploy deploy an app to Observable [deprecated]
8585
whoami check authentication status
8686
convert convert an Observable notebook to Markdown
8787
help print usage information

src/deploy.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,18 @@ type DeployTargetInfo =
8484
| {create: true; workspace: {id: string; login: string}; projectSlug: string; title: string; accessLevel: string}
8585
| {create: false; workspace: {id: string; login: string}; project: GetProjectResponse};
8686

87-
/** Deploy a project to ObservableHQ */
8887
export async function deploy(deployOptions: DeployOptions, effects = defaultEffects): Promise<void> {
8988
Telemetry.record({event: "deploy", step: "start", force: deployOptions.force});
9089
effects.clack.intro(`${inverse(" observable deploy ")} ${faint(`v${process.env.npm_package_version}`)}`);
91-
90+
effects.clack.log.warn(
91+
wrapAnsi(
92+
`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(
93+
"https://observablehq.com/release-notes/2025-04-15-deprecating-observable-cloud"
94+
)}`,
95+
effects.outputColumns
96+
)
97+
);
9298
const deployInfo = await new Deployer(deployOptions, effects).deploy();
93-
9499
effects.clack.outro(`Deployed app now visible at ${link(deployInfo.url)}`);
95100
Telemetry.record({event: "deploy", step: "finish"});
96101
}

0 commit comments

Comments
 (0)