@wix/origami-site-express 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -10,7 +10,7 @@ The site has no server code. Its scripts call the bin:
10
10
  | `yarn dev` | `origami-site-express dev` | Vite in middleware mode + Express + the core in dev mode: hot reload, live routing |
11
11
 
12
12
  `PORT` sets the port (default 3000). `yarn dev` listens on `localhost` only, because it serves the site's source
13
- through Vite; set `HOST=0.0.0.0` to reach it from another machine or a container. `VITE_WIX_CLIENT_ID` and `VITE_WIX_SITE_ID` come from `.env`.
13
+ through Vite; set `HOST=0.0.0.0` to reach it from another machine or a container. `VITE_WIX_CLIENT_ID` and `VITE_WIX_METASITE_ID` come from `.env`.
14
14
 
15
15
  - The adapter loads `@wix/origami-site` from the **site root**, never its own copy.
16
16
  - In dev each request imports the core through Vite's module runner, so a linked core reloads on edit
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/origami-site-express",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Run an exported Wix origami site on Node with Express and Vite.",
5
5
  "type": "module",
6
6
  "files": [
@@ -65,5 +65,5 @@
65
65
  ]
66
66
  }
67
67
  },
68
- "falconPackageHash": "6b12967d51ce9c6f91010418e950985808b8bce67fc93f175fe38836"
68
+ "falconPackageHash": "e086a1a7b335a7b5bb3e16de019acaf488e4463e5a1f1c51b567acab"
69
69
  }
package/src/server/env.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @param {Record<string, string | undefined>} env */
3
3
  export function siteOptions(env) {
4
4
  return {
5
- wix: { clientId: env.VITE_WIX_CLIENT_ID ?? '', siteId: env.VITE_WIX_SITE_ID ?? '' },
5
+ wix: { clientId: env.VITE_WIX_CLIENT_ID ?? '', siteId: env.VITE_WIX_METASITE_ID ?? '' },
6
6
  ...(env.ORIGAMI_WIX_API_BASE ? { wixApiBaseUrl: env.ORIGAMI_WIX_API_BASE } : {}),
7
7
  }
8
8
  }