Jan Plaček
03/10/2022, 10:08 AMsst start
it works no longer even for the previously added function.
EDIT:
It does not work to anyone of us, it doesn't seem to be a local issue.
I use both explicit Function creation and the ones scaffolded by SST from function props, neither works.
EDIT 2:
Found out what's wrong. The changes are picked up correctly (based on sst-debug.log
), but it won't rebuild/reload the function unless you hit the endpoint with a request at least once. Is this by design?thdxr
03/10/2022, 1:42 PMthdxr
03/10/2022, 1:42 PMthdxr
03/10/2022, 1:42 PMJan Plaček
03/10/2022, 2:11 PMFunctions: Building ...
during that first request lazy build.
However we hit a more serious problem probably related to this:Jan Plaček
03/10/2022, 2:12 PMJan Plaček
03/10/2022, 2:13 PMthdxr
03/10/2022, 2:15 PMJan Plaček
03/10/2022, 2:23 PM{ isAuthorized: false }
and is connected to a route. Now you sst start
.
Now you can modify the authorizer however you want, you can hit the end point and it just returns unathorized. The authorizer function never re-builds if you change it.
We theoretize it's because the lambda behind the authorizer is never invoked...Jan Plaček
03/10/2022, 2:25 PMthdxr
03/10/2022, 2:35 PMthdxr
03/10/2022, 2:37 PMthdxr
03/10/2022, 2:37 PMthdxr
03/10/2022, 2:37 PMJan Plaček
03/10/2022, 9:56 PMJan Plaček
03/11/2022, 10:51 AM