user
04/24/2021, 11:08 AMapiDomain
when `init`ing the backend SDK?rp
04/24/2021, 11:09 AMrp
04/24/2021, 11:09 AMuser
04/24/2021, 11:09 AMrp
04/24/2021, 11:09 AMrp
04/24/2021, 11:09 AMuser
04/24/2021, 11:09 AMwebsiteDomain
if the frontend app is still in development and not deployed anywhere yet?rp
04/24/2021, 11:10 AMrp
04/24/2021, 11:11 AMuser
04/24/2021, 11:11 AMuser
04/24/2021, 11:12 AMrp
04/24/2021, 11:12 AMuser
04/24/2021, 11:12 AMrp
04/24/2021, 11:12 AMuser
04/24/2021, 11:13 AMapiBasePath
? what does it point to? and is it relevant for the backend part only or also for the front-?rp
04/24/2021, 11:14 AMrp
04/24/2021, 11:14 AM/auth
(which is the default). This means all the APIs we expose via the nodeSDK will be in /auth/*
.rp
04/24/2021, 11:16 AM/.netlify/functions/*
. So we can make the apiBasePath something like /.netlify/functions/api
or /.netlify/functions/auth
rp
04/24/2021, 11:17 AMuser
04/24/2021, 11:18 AMhttps://blah-blah.execute-api.blah-blah.amazonaws.com/stage/my-endpoint
rp
04/24/2021, 11:19 AMapiDomain
should be https://blah-blah.execute-api.blah-blah.amazonaws.com
and the apiBasePath
should be /stage/auth
. This means the node sdk will expose a bunch of APIs on https://blah-blah.execute-api.blah-blah.amazonaws.com/stage/auth/*
rp
04/24/2021, 11:20 AM/prod/api-endpoint
so the apiBasePath
can be modified too based on env varsuser
04/24/2021, 11:21 AMuser
04/24/2021, 11:22 AMrp
04/24/2021, 11:23 AMrp
04/24/2021, 11:23 AMrp
04/24/2021, 11:23 AMrp
04/24/2021, 11:24 AMuser
04/24/2021, 11:25 AMuser
04/24/2021, 11:26 AM