Skip to content

Commit

Permalink
write preview server into vscode output
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed May 4, 2022
1 parent b97db05 commit 6eda39e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/command/render/render-shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export async function printBrowsePreviewMessage(port: number, path: string) {
const session = Deno.env.get("RS_SESSION_URL")!;
const portToken = await mapRSWPortToken(port);
const url = `${server}${session.slice(1)}p/${portToken}/${path}`;
info(`\nPreview server: http://localhost:${port}/`);
info(`\nBrowse at ${url}`, { format: colors.green });
} else {
const url = `http://localhost:${port}/${path}`;
Expand Down

0 comments on commit 6eda39e

Please sign in to comment.