Iamgingertrash
09/09/2021, 2:48 AMthdxr
09/09/2021, 3:12 AMIamgingertrash
09/09/2021, 3:20 AMthdxr
09/09/2021, 3:21 AMsst start
is meant to only be used during a development stage, nothing is stopping you from running it on a production stage but you typically don't want to redirect all production traffic to your local computerthdxr
09/09/2021, 3:27 AMAyo
09/09/2021, 3:29 AMnpx start --stage prod
and I can do npx sst deploy --stage prod
but the issue is that both returns the same http endpoint which isn’t ideal and is confusingthdxr
09/09/2021, 3:30 AMsst start --stage prod
thdxr
09/09/2021, 3:30 AMthdxr
09/09/2021, 3:31 AM--stage
flag for sst start
or specify something like sst start --stage dev
Ayo
09/09/2021, 3:35 AMAyo
09/09/2021, 3:35 AMAyo
09/09/2021, 3:35 AMthdxr
09/09/2021, 3:36 AMsst start --stage dev2
so you can do live debugging and see what's going onAyo
09/09/2021, 3:36 AMthdxr
09/09/2021, 3:36 AMsst deploy
until you're ready to go to productionAyo
09/09/2021, 3:37 AMIamgingertrash
09/09/2021, 3:37 AMthdxr
09/09/2021, 3:38 AMthdxr
09/09/2021, 3:38 AMAyo
09/09/2021, 3:39 AMthdxr
09/09/2021, 3:39 AMAyo
09/09/2021, 3:39 AMthdxr
09/09/2021, 3:40 AMthdxr
09/09/2021, 3:41 AMAyo
09/09/2021, 3:45 AMthdxr
09/09/2021, 3:47 AMthdxr
09/09/2021, 3:48 AMbundle: {
nodeModules: ["knex"]
}
thdxr
09/09/2021, 3:49 AMthdxr
09/09/2021, 3:51 AMnew sst.Api(this, "api", {
defaultFunctionProps: {
bundle: {
nodeModules: ["knex"],
},
},
routes: {
"GET /": "src/myfunc.handler",
},
});
Ayo
09/09/2021, 3:59 AMAyo
09/09/2021, 4:39 AMAyo
09/09/2021, 4:39 AMAyo
09/09/2021, 4:39 AMthdxr
09/09/2021, 4:50 AMthdxr
09/09/2021, 4:51 AM