MCPcopy
hub / github.com/remix-run/react-router / build

Function build

integration/helpers/vite.ts:294–311  ·  view source on GitHub ↗
({
  cwd,
  env = {},
}: {
  cwd: string;
  env?: Record<string, string>;
})

Source from the content-addressed store, hash-verified

292} as const;
293
294export const build = ({
295 cwd,
296 env = {},
297}: {
298 cwd: string;
299 env?: Record<string, string>;
300}) => {
301 let nodeBin = process.argv[0];
302
303 return spawnSync(nodeBin, [reactRouterBin, "build"], {
304 cwd,
305 env: {
306 ...process.env,
307 ...colorEnv,
308 ...env,
309 },
310 });
311};
312
313export const reactRouterServe = async ({
314 cwd,

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…