MCPcopy
hub / github.com/PostHog/posthog / startDevServer

Function startDevServer

frontend/utils.mjs:330–339  ·  view source on GitHub ↗
(absWorkingDir)

Source from the content-addressed store, hash-verified

328
329let server
330export function startDevServer(absWorkingDir) {
331 if (isDev) {
332 console.log(`👀 Starting dev server`)
333 server = startServer({ absWorkingDir })
334 return server
335 } else {
336 console.log(`🛳 Starting production build`)
337 return null
338 }
339}
340
341export function startServer(opts = {}) {
342 const host = opts.host || defaultHost

Callers 3

build.mjsFile · 0.90
build.mjsFile · 0.90
build.mjsFile · 0.90

Calls 1

startServerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…