Skip to content

Commit

Permalink
To allow silient 'watchable' execution, remove browser open during in…
Browse files Browse the repository at this point in the history
…voke (#110)
  • Loading branch information
uditdc authored Sep 26, 2023
1 parent 94fed7c commit 4ec58cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/commands/function/invoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/commands/sites/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4ec58cc

Please sign in to comment.