@salesforce/pwa-kit-dev 3.17.0 → 3.17.1-preview.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.
@@ -254,10 +254,16 @@ const main = async () => {
254
254
  process.exit(1)
255
255
  }
256
256
 
257
+ // Load config to get envBasePath from ssrParameters for local development
258
+ // This mimics how MRT sets the MRT_ENV_BASE_PATH system environment variable
259
+ const config = getConfig() || {}
260
+ const envBasePath = config.ssrParameters?.envBasePath || ''
261
+
257
262
  execSync(`${babelNode} ${inspect ? '--inspect' : ''} ${babelArgs} ${entrypoint}`, {
258
263
  env: {
259
264
  ...process.env,
260
- ...(noHMR ? {HMR: 'false'} : {})
265
+ ...(noHMR ? {HMR: 'false'} : {}),
266
+ ...(envBasePath ? {MRT_ENV_BASE_PATH: envBasePath} : {})
261
267
  }
262
268
  })
263
269
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/pwa-kit-dev",
3
- "version": "3.17.0",
3
+ "version": "3.17.1-preview.0",
4
4
  "description": "Build tools for pwa-kit",
5
5
  "homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/pwa-kit-dev#readme",
6
6
  "bugs": {
@@ -58,7 +58,7 @@
58
58
  "@loadable/server": "^5.15.3",
59
59
  "@loadable/webpack-plugin": "^5.15.2",
60
60
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
61
- "@salesforce/pwa-kit-runtime": "3.17.0",
61
+ "@salesforce/pwa-kit-runtime": "3.17.1-preview.0",
62
62
  "@typescript-eslint/eslint-plugin": "^5.57.0",
63
63
  "@typescript-eslint/parser": "^5.57.0",
64
64
  "archiver": "^7.0.1",
@@ -121,7 +121,7 @@
121
121
  "@types/node": "~16.0.3",
122
122
  "@types/node-fetch": "~2.6.3",
123
123
  "@types/validator": "~13.7.14",
124
- "internal-lib-build": "3.17.0",
124
+ "internal-lib-build": "3.17.1-preview.0",
125
125
  "nock": "^13.3.0",
126
126
  "nodemon": "^2.0.22",
127
127
  "superagent": "^6.1.0",
@@ -147,5 +147,5 @@
147
147
  "publishConfig": {
148
148
  "directory": "dist"
149
149
  },
150
- "gitHead": "6d0cfd2308b9f25d8badd722469074889bd3b891"
150
+ "gitHead": "beabe8a971b6170bddfe08ae3f5ca2f1bfe66aa7"
151
151
  }