MCPcopy Index your code
hub / github.com/coder/coder / pnpmCmd

Function pnpmCmd

scripts/develop/main.go:1277–1284  ·  view source on GitHub ↗
(ctx context.Context, cfg *devConfig)

Source from the content-addressed store, hash-verified

1275}
1276
1277func pnpmCmd(ctx context.Context, cfg *devConfig) *exec.Cmd {
1278 cmd := cfg.cmd(ctx, "pnpm", "--dir", "./site", "dev", "--host")
1279 cmd.Env = append(cmd.Env,
1280 fmt.Sprintf("PORT=%d", cfg.webPort),
1281 fmt.Sprintf("CODER_HOST=http://127.0.0.1:%d", cfg.apiPort),
1282 )
1283 return cmd
1284}
1285
1286// prometheusBannerEntry decides which (if any) prometheus-related URL
1287// the dev banner should advertise. When the embedded Prometheus server

Callers 1

developFunction · 0.85

Calls 1

cmdMethod · 0.80

Tested by

no test coverage detected