File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ const capitalize = (str) => `${str[0].toUpperCase()}${str.slice(1)}`
66 * Kratos redirects and sets cookie upon client lands on URL and redirects back to
77 * frontend with request_id
88 * */
9- const authPublicURL = `${ config . backendURL } /.ory/kratos/public` ;
10- const authAdminURL = `${ config . backendURL } /.ory/kratos` ;
9+ const authPublicURL = `${ config . authBackendURL } /.ory/kratos/public` ;
10+ const authAdminURL = `${ config . authBackendURL } /.ory/kratos` ;
1111
1212/**
1313 * publicApi / adminApi are initialized Kratos SDK client with public / admin endpoints,
Original file line number Diff line number Diff line change 11{
22 "appName" : " <% .Name %>" ,
33 "environment" : " development" ,
4- "backendURL" : " http://localhost:8080" <%if eq (index .Params `billingEnabled`) "yes" %>,
4+ "backendURL" : " http://localhost:8080"
5+ <%- if eq (index .Params `billingEnabled`) "yes" %>,
6+ "authBackendURL" : " https://dev.<% index .Params `stagingHostRoot` %>" ,
7+ <% end %>
8+ <%- if eq (index .Params `billingEnabled`) "yes" %>,
59 "stripePublishableKey" : " <% index .Params `stagingStripePublicApiKey` %>" <% end %>
610}
Original file line number Diff line number Diff line change 11{
22 "appName" : " <% .Name %>" ,
33 "environment" : " production" ,
4- "backendURL" : " https://<% index .Params `productionBackendSubdomain` %><% index .Params `productionHostRoot` %>" <%if eq (index .Params `billingEnabled`) "yes" %>,
4+ "backendURL" : " https://<% index .Params `productionBackendSubdomain` %><% index .Params `productionHostRoot` %>" ,
5+ "authBackendURL" : " https://<% index .Params `productionBackendSubdomain` %><% index .Params `productionHostRoot` %>" <%if eq (index .Params `billingEnabled`) "yes" %>,
56 "stripePublishableKey" : " <% index .Params `productionStripePublicApiKey` %>" <% end %>
67}
Original file line number Diff line number Diff line change 11{
22 "appName" : " <% .Name %>" ,
33 "environment" : " staging" ,
4- "backendURL" : " https://<% index .Params `stagingBackendSubdomain` %><% index .Params `stagingHostRoot` %>" <%if eq (index .Params `billingEnabled`) "yes" %>,
4+ "backendURL" : " https://<% index .Params `stagingBackendSubdomain` %><% index .Params `stagingHostRoot` %>" ,
5+ "authBackendURL" : " https://<% index .Params `stagingBackendSubdomain` %><% index .Params `stagingHostRoot` %>" <%if eq (index .Params `billingEnabled`) "yes" %>,
56 "stripePublishableKey" : " <% index .Params `stagingStripePublicApiKey` %>" <% end %>
67}
You can’t perform that action at this time.
0 commit comments