Patrick
02/25/2022, 11:04 PMsst.StackSite
construct?
I’m trying to deploy my CDK app with Seed, but I get an error when building the site because the node_modules for building the site are nested in another folder, and the build pipeline is trying to find it the project root
├── sst.json
├── node_modules // <- my SST dependencies
├── package.json
├── stacks
│ ├── index.tx // <- creates stack for deploying static site in /apps/static-site
├── apps
│ ├── static-site
│ | ├── package.json
│ | ├── node_modules // <- my React dependencies
The error I’m getting is react-scripts:not found
(it’s installed in the static-site
folder, not the project root) (edited)Adam Fanello
02/25/2022, 11:43 PMFrank
Frank
Frank
Frank
seed.yml
buildspec to run npm/yarn install
inside your static-site
directory, ie.
before_build:
- cd apps/static-site && npm install
Frank