MCPcopy
hub / github.com/redwoodjs/graphql / webSsrServerHandler

Function webSsrServerHandler

packages/cli/src/commands/serveWebHandler.js:5–18  ·  view source on GitHub ↗
(rscEnabled)

Source from the content-addressed store, hash-verified

3import { getPaths } from '@redwoodjs/project-config'
4
5export const webSsrServerHandler = async (rscEnabled) => {
6 await execa('yarn', ['rw-serve-fe'], {
7 cwd: getPaths().web.base,
8 stdio: 'inherit',
9 shell: true,
10 env: rscEnabled
11 ? {
12 // TODO (RSC): Is this how we want to do it? If so, we need to find a way
13 // to merge this with users' NODE_OPTIONS
14 NODE_OPTIONS: '--conditions react-server',
15 }
16 : undefined,
17 })
18}

Callers 1

builderFunction · 0.90

Calls 1

getPathsFunction · 0.90

Tested by

no test coverage detected