Seth Geoghegan
03/09/2021, 5:51 PMcustomDomain setting on the API ConstructSeth Geoghegan
03/09/2021, 5:54 PMsst startSeth Geoghegan
03/09/2021, 5:57 PMcustomDomain featureSeth Geoghegan
03/09/2021, 6:32 PMsst start after configuring the customDomain, instead of running sst deployFrank
Seth Geoghegan
03/09/2021, 6:49 PMSeth Geoghegan
03/09/2021, 6:50 PMSeth Geoghegan
03/09/2021, 6:50 PMSeth Geoghegan
03/09/2021, 6:50 PMSeth Geoghegan
03/09/2021, 6:51 PMFrank
Frank
I created a custom domain to serve my development api (dev-api.<mydomainname>.com, which worked wellu mean dev-api.domain.com worked for you after u configured customDomain in SST?
Seth Geoghegan
03/09/2021, 6:51 PMSeth Geoghegan
03/09/2021, 6:52 PMFrank
sst deploy or sst start?Seth Geoghegan
03/09/2021, 6:52 PMSeth Geoghegan
03/09/2021, 6:53 PMsst start only), I configured seed.run to deploy the appSeth Geoghegan
03/09/2021, 6:53 PMsst deploy was runSeth Geoghegan
03/09/2021, 6:54 PMSeth Geoghegan
03/09/2021, 6:54 PMSeth Geoghegan
03/09/2021, 6:54 PM{
"errorType": "Error",
"errorMessage": "Debug client not connected.",
"stack": [
"Error: Debug client not connected.",
" at receiveMessage (/var/task/index.js:153:13)",
" at WebSocket._ref.ws.onmessage (/var/task/index.js:83:7)",
" at WebSocket.onMessage (/var/task/node_modules/ws/lib/event-target.js:132:16)",
" at WebSocket.emit (events.js:314:20)",
" at Receiver.receiverOnMessage (/var/task/node_modules/ws/lib/websocket.js:825:20)",
" at Receiver.emit (events.js:314:20)",
" at Receiver.dataMessage (/var/task/node_modules/ws/lib/receiver.js:437:14)",
" at /var/task/node_modules/ws/lib/receiver.js:394:23",
" at /var/task/node_modules/ws/lib/permessage-deflate.js:308:9",
" at /var/task/node_modules/ws/lib/permessage-deflate.js:387:7"
]
}Seth Geoghegan
03/09/2021, 6:55 PMSeth Geoghegan
03/09/2021, 6:55 PMSeth Geoghegan
03/09/2021, 6:55 PMsst start and hit the API endpoint, and it workedSeth Geoghegan
03/09/2021, 6:55 PMFrank
Seth Geoghegan
03/09/2021, 6:56 PMSeth Geoghegan
03/09/2021, 6:56 PMsst deploy was calledFrank
sst start with?Frank
--stage option when u run sst start?Seth Geoghegan
03/09/2021, 6:58 PMyarn start, which is executing sst start with no argsSeth Geoghegan
03/09/2021, 6:58 PMSeth Geoghegan
03/09/2021, 7:00 PMdevFrank
Seth Geoghegan
03/09/2021, 7:00 PM{
"name": "signup-and-run",
"stage": "dev",
"region": "us-west-2",
"lint": true
}Frank
Seth Geoghegan
03/09/2021, 7:02 PMsethgeogheganFrank
Seth Geoghegan
03/09/2021, 7:04 PMFrank
Frank
Seth Geoghegan
03/09/2021, 7:10 PMFrank
sst startFrank
Frank
Seth Geoghegan
03/09/2021, 7:12 PMFrank
Seth Geoghegan
03/09/2021, 7:15 PMFrank
Seth Geoghegan
03/09/2021, 7:16 PMSeth Geoghegan
03/09/2021, 7:16 PMFrank
Frank
Seth Geoghegan
03/09/2021, 7:19 PMFrank
sst start and sst deploy is that:Frank
sst start SST doesn’t deploy your real lambda code, it deploys some stub code to send/receive websockets to your localFrank
sst deploy SST deploys your real lambda codeSeth Geoghegan
03/09/2021, 7:22 PMsst start to fire up my development environment, and things appear to be back in the prior stateFrank
sst start you are pretty much doing a new deployment (with stub lambdas)Seth Geoghegan
03/09/2021, 7:23 PMSeth Geoghegan
03/09/2021, 7:23 PMFrank
Frank
sst start, the stub lambdas are deployed and requests are send to your localFrank
sst deploy again, the stub lambdas are not getting replaced with real LambdasFrank
Frank
sst deploy again to deploy the real lambdasSeth Geoghegan
03/09/2021, 7:26 PMSeth Geoghegan
03/09/2021, 7:27 PMSeth Geoghegan
03/09/2021, 7:27 PMFrank
Frank
Frank
sst start it should work normallyFrank
Seth Geoghegan
03/09/2021, 7:28 PMSeth Geoghegan
03/09/2021, 7:28 PMFrank
Frank
sst start replaced the underlying function code, so your production Lambda functions are sending the requests to your localSeth Geoghegan
03/09/2021, 7:32 PMSeth Geoghegan
03/09/2021, 7:34 PMsst start stopped the routing to my dev environment.Frank
Seth Geoghegan
03/09/2021, 7:40 PMSeth Geoghegan
03/09/2021, 7:40 PMFrank
Roger Rajaratnam
03/09/2021, 11:12 PMFrank
Frank
Seth Geoghegan
03/10/2021, 12:18 AMRoger Rajaratnam
03/10/2021, 8:34 AM