@ofidj/generator-fidj 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/scaffold.cjs +6 -1
- package/package.json +1 -1
package/lib/scaffold.cjs
CHANGED
|
@@ -135,7 +135,12 @@ function scaffold(destination, options) {
|
|
|
135
135
|
: api.href.replace(/\/$/, "");
|
|
136
136
|
const configuration = {
|
|
137
137
|
appId: options.appId,
|
|
138
|
-
|
|
138
|
+
// A local build talks to the loopback API, so it must use that API's own
|
|
139
|
+
// provider: the client refuses an issuer on a different origin, and keeping
|
|
140
|
+
// the hosted one would send local sign-ins to production.
|
|
141
|
+
oidcIssuer: options.oidcIssuer
|
|
142
|
+
? new URL("/oidc", localApi).href
|
|
143
|
+
: null,
|
|
139
144
|
apiEndpoint: localApi,
|
|
140
145
|
dashboardUrl: options.local ? "http://localhost:4200" : "https://fidj.ovh",
|
|
141
146
|
title,
|