diff --git a/src/commands/function/invoke.ts b/src/commands/function/invoke.ts index b390154..b6a77f8 100644 --- a/src/commands/function/invoke.ts +++ b/src/commands/function/invoke.ts @@ -9,7 +9,6 @@ import { logger } from "../../lib/logger" import { run as runInstall } from "../offchain/install" import prompRuntimeConfirm from "../../prompts/runtime/confirm" import Fastify from "fastify" -import { openInBrowser } from "../../lib/browser" import { getPortPromise } from "portfinder"; export const run = async (options: any) => { @@ -167,7 +166,6 @@ export const run = async (options: any) => { fastify.listen({ port }).then(async () => { console.log(`Serving http://127.0.0.1:${port} ...`) - openInBrowser(`http://127.0.0.1:${port}`) }) } else { // pass in stdin to the runtime diff --git a/src/commands/sites/preview.ts b/src/commands/sites/preview.ts index e07d8d5..2877878 100644 --- a/src/commands/sites/preview.ts +++ b/src/commands/sites/preview.ts @@ -9,7 +9,6 @@ import { run as runBuild } from "./build" import { run as runInstall } from "../offchain/install" import prompRuntimeConfirm from "../../prompts/runtime/confirm" import Fastify from "fastify" -import { openInBrowser } from "../../lib/browser" import { getPortPromise } from "portfinder"; export const run = async (options: any) => { @@ -179,7 +178,6 @@ export const run = async (options: any) => { fastify.listen({ port }).then(async () => { console.log(`Serving http://127.0.0.1:${port} ...`) - openInBrowser(`http://127.0.0.1:${port}`) }) } catch (error: any) { logger.error('Failed to invoke function.', error.message)