(ctx context.Context, cfg *devConfig)
| 1275 | } |
| 1276 | |
| 1277 | func 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 |