fix invites

This commit is contained in:
keyan 2021-11-11 11:38:41 -06:00
parent 1cdd166685
commit bdf63a85be
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ LND_SOCKET=<YOUR LND GRPC HOST>:<YOUR LND GRPC PORT>
# static things # static things
NEXTAUTH_URL=http://localhost:3000/api/auth NEXTAUTH_URL=http://localhost:3000/api/auth
SELF_URL=http://localhost:3000 SELF_URL=http://localhost:3000
PUBLIC_URL=http://localhost:3000
LND_CONNECT_ADDRESS=03cc1d0932bb99b0697f5b5e5961b83ab7fd66f1efc4c9f5c7bad66c1bcbe78f02@xhlmkj7mfrl6ejnczfwl2vqik3xim6wzmurc2vlyfoqw2sasaocgpuad.onion:9735 LND_CONNECT_ADDRESS=03cc1d0932bb99b0697f5b5e5961b83ab7fd66f1efc4c9f5c7bad66c1bcbe78f02@xhlmkj7mfrl6ejnczfwl2vqik3xim6wzmurc2vlyfoqw2sasaocgpuad.onion:9735
NEXTAUTH_SECRET=3_0W_PhDRZVanbeJsZZGIEljexkKoGbL6qGIqSwTjjI NEXTAUTH_SECRET=3_0W_PhDRZVanbeJsZZGIEljexkKoGbL6qGIqSwTjjI
JWT_SIGNING_PRIVATE_KEY={"kty":"oct","kid":"FvD__hmeKoKHu2fKjUrWbRKfhjimIM4IKshyrJG4KSM","alg":"HS512","k":"3_0W_PhDRZVanbeJsZZGIEljexkKoGbL6qGIqSwTjjI"} JWT_SIGNING_PRIVATE_KEY={"kty":"oct","kid":"FvD__hmeKoKHu2fKjUrWbRKfhjimIM4IKshyrJG4KSM","alg":"HS512","k":"3_0W_PhDRZVanbeJsZZGIEljexkKoGbL6qGIqSwTjjI"}

View File

@ -44,10 +44,12 @@ export async function getServerSideProps ({ req, res, query: { id, error = null
return { props: {} } return { props: {} }
} }
console.log(process.env.PUBLIC_URL + req.url)
return { return {
props: { props: {
providers: await providers({ req, res }), providers: await providers({ req, res }),
callbackUrl: process.env.SELF_URL + req.url, callbackUrl: process.env.PUBLIC_URL + req.url,
invite: data.invite, invite: data.invite,
error error
} }