@snapdragonsnursery/react-components 1.1.1 → 1.1.2
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/package.json +1 -1
- package/src/ChildSearchModal.jsx +2 -2
package/package.json
CHANGED
package/src/ChildSearchModal.jsx
CHANGED
|
@@ -105,7 +105,7 @@ const ChildSearchModal = ({
|
|
|
105
105
|
|
|
106
106
|
try {
|
|
107
107
|
// Get access token
|
|
108
|
-
const apiBaseUrl =
|
|
108
|
+
const apiBaseUrl = import.meta.env.VITE_COMMON_API_BASE_URL || "https://snaps-common-api.azurewebsites.net";
|
|
109
109
|
const apiScope = apiBaseUrl.replace(/^https?:\/\//, "api://") + "/.default";
|
|
110
110
|
|
|
111
111
|
const response = await instance.acquireTokenSilent({
|
|
@@ -162,7 +162,7 @@ const ChildSearchModal = ({
|
|
|
162
162
|
// Make API call
|
|
163
163
|
const apiResponse = await fetch(
|
|
164
164
|
`${
|
|
165
|
-
|
|
165
|
+
import.meta.env.VITE_COMMON_API_BASE_URL ||
|
|
166
166
|
"https://snaps-common-api.azurewebsites.net"
|
|
167
167
|
}/api/search-children?${params}`,
|
|
168
168
|
{
|