wirejs-deploy-amplify-basic 0.0.142-payments → 0.0.143-payments

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.
@@ -4,7 +4,7 @@ import path from 'path';
4
4
 
5
5
  import { JSDOM } from 'jsdom';
6
6
  import { useJSDOM } from 'wirejs-dom/v2';
7
- import { Context, CookieJar } from 'wirejs-resources';
7
+ import { Context, CookieJar, SystemAttribute } from 'wirejs-resources';
8
8
 
9
9
 
10
10
  const SSR_ROOT = path.join(path.dirname(new URL(import.meta.url).pathname), 'ssr');
@@ -29,11 +29,9 @@ const logger = {
29
29
  try {
30
30
  const backendConfigModule = await import('./config.js');
31
31
  const backendConfig = backendConfigModule.default;
32
- logger.log("backend config found", backendConfig);
33
- if (backendConfig.apiUrl) {
34
- API_URL = backendConfig.apiUrl;
35
- GENERATED = backendConfig.generated;
36
- }
32
+ logger.log("backend config found. backend API_URL: ", backendConfig.API_URL);
33
+ API_URL = backendConfig.apiUrl;
34
+ GENERATED = backendConfig.generated;
37
35
  } catch {
38
36
  logger.log("No backend API config found.");
39
37
  }
@@ -97,9 +95,11 @@ async function createContext(req) {
97
95
  }),
98
96
  new SystemAttribute('wirejs', 'http-origin-local', {
99
97
  description: 'HTTP origin (base address) to use for local development.',
98
+ value: null,
100
99
  }),
101
100
  new SystemAttribute('wirejs', 'http-origin-network', {
102
101
  description: 'HTTP origin (base address) for machines on your network to use.',
102
+ value: null,
103
103
  }),
104
104
  new SystemAttribute('wirejs', 'http-origin-public', {
105
105
  description: 'HTTP origin (base address) for machines outside your network to use. Only populated for `npm run start:public`, and only accessible in environments that support NAT-PMP.',
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.42",
6
- "wirejs-resources": "^0.1.110-payments"
6
+ "wirejs-resources": "^0.1.111-payments"
7
7
  }
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.142-payments",
3
+ "version": "0.0.143-payments",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "recursive-copy": "^2.0.14",
43
43
  "rimraf": "^6.0.1",
44
44
  "wirejs-dom": "^1.0.42",
45
- "wirejs-resources": "^0.1.110-payments"
45
+ "wirejs-resources": "^0.1.111-payments"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@aws-amplify/backend": "^1.14.0",