Hi, If I wanted to setup multiple services under t...
# help
k
Hi, If I wanted to setup multiple services under the same repo e.x
Copy code
---> serviceA
------> lib
--------->index.ts
------> src
-------->handlers
------> sst.json

---> servoiceB
------> lib
--------->index.ts
------> src
-------->handlers
------> sst.json

---> common
------> lib
---------->api.stack.ts
----------> index.ts
------> sst.json
Is there a way that all the services can share the same API gateway and for e.x the same cognito authorizer? In addition to that would Seed recognise them as separate services and deploy only the once that changed? If something in common changes (a common resource) that would in turn affect serviceA would that trigger the build for A?
t
I would suggest having only one sst.json
k
Ahh and than just use normal TS imports..
t
Well
You can still have multiple packages
This isn't finished yet but some initial thoughts
k
Ok interesting
So you would define the infrastructure inside
Copy code
sst/
And only the service business logic inside
Copy code
backend/
t
Yeah the more I'm experimenting the less I'm in favor of multiple packages (with multiple package.json). One thing that you lose is the ability to use typescript refactoring to rename stuff across projects
k
Yeah that is super useful