dleiva04
04/22/2021, 8:09 PMuser
04/22/2021, 8:09 PMuser
04/22/2021, 8:10 PMuser
04/23/2021, 7:29 PMdleiva04
04/23/2021, 8:35 PMrp
04/24/2021, 5:26 AMuser
04/24/2021, 7:31 AMhosts
is not an expected parameter. I guess that's what's replaced by connectionUri
...user
04/24/2021, 7:36 AMinit
method:
export declare type TypeInput = {
supertokens: {
connectionURI: string;
apiKey?: string;
};
apiWebProxyPath?: string;
appInfo: AppInfo;
recipeList: RecipeListFunction[];
telemetry?: boolean;
isInServerlessEnv?: boolean;
};
user
04/24/2021, 7:41 AMAll config values:
are outdated.rp
04/24/2021, 9:26 AMrp
04/24/2021, 9:28 AMrp
04/24/2021, 9:29 AMrp
04/24/2021, 9:32 AMuser
04/24/2021, 10:50 AMGo to documentation
linkrp
04/24/2021, 10:50 AMrp
04/24/2021, 10:51 AMuser
04/24/2021, 10:51 AMDevelopment Environment (v3.4)
rp
04/24/2021, 10:51 AMuser
04/24/2021, 10:51 AMuser
04/24/2021, 10:54 AMapp.use((err, req, res, next) => {
console.log(err);
res.send(
"Something went wrong. Please see error here: https://app.netlify.com/sites/hardcore-goodall-fd3278/functions/api"
);
});
results in an error because req
and res
should be the first and second arguments, respectively.
I have no idea how this could work as it is written now. I am not even sure err
is part of the function signature.
I just put req
and res
as 1st and 2nd args and it worked out.rp
04/24/2021, 10:55 AMerr
, that means we are defining an error handler.rp
04/24/2021, 10:56 AMuser
04/24/2021, 10:56 AMres.send
resulted in TypeError: res.send is not a function
user
04/24/2021, 10:57 AMrp
04/24/2021, 10:58 AMrp
04/24/2021, 10:59 AM(res as any).send(...)
to ignore the erroruser
04/24/2021, 11:00 AMuser
04/24/2021, 11:07 AMinit
method now.
what apiDomain
refers to? in my case of adding ST to a Lambda function should this API domain be the URL of the Lambda func itself?rp
04/24/2021, 11:07 AMrp
04/24/2021, 11:08 AM