create-wirejs-app 2.0.4 → 2.0.5
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
CHANGED
|
@@ -4,8 +4,12 @@ let API_URL = '/api';
|
|
|
4
4
|
const indexModule = await import('./index.js');
|
|
5
5
|
|
|
6
6
|
try {
|
|
7
|
-
const
|
|
8
|
-
|
|
7
|
+
const backendConfigModule = await import('./config.js');
|
|
8
|
+
const backendConfig = backendConfigModule.default;
|
|
9
|
+
console.log("backend config found", backendConfig);
|
|
10
|
+
if (backendConfig.apiUrl) {
|
|
11
|
+
API_URL = backendConfig.apiUrl;
|
|
12
|
+
}
|
|
9
13
|
} catch {
|
|
10
14
|
console.log("No backend API config found.");
|
|
11
15
|
}
|