create-bdpa-react-scaffold 2.0.8 → 2.1.0
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/create-ui-lib.js +6 -1
- package/package.json +1 -1
package/create-ui-lib.js
CHANGED
|
@@ -1718,7 +1718,12 @@ export class ApiClient {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
|
|
1721
|
+
const apiClient = new ApiClient(import.meta.env.VITE_API_BASE_URL || "");
|
|
1722
|
+
apiClient.instance.interceptors.request.use((config) => {
|
|
1723
|
+
config.params = { ...config.params, api_key: import.meta.env.VITE_API_MOVIEDB_TOKEN };
|
|
1724
|
+
return config;
|
|
1725
|
+
});
|
|
1726
|
+
export default apiClient;
|
|
1722
1727
|
`);
|
|
1723
1728
|
|
|
1724
1729
|
// -------------------------------
|