(rscEnabled)
| 3 | import { getPaths } from '@redwoodjs/project-config' |
| 4 | |
| 5 | export 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 | } |