You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defaults for `buildDirectory`, `ssrOnly`, and `ssrShared` are chosen by detected project type (Storefront Next, PWA Kit v3, or generic). Explicit parameters override the project-type defaults.
|`buildDirectory`| string | No |`./build`| Path to build directory containing the built project files. Can be absolute or relative to the project directory. |
36
38
|`message`| string | No | None | Deployment message to include with the bundle push. Useful for tracking deployments. |
37
-
|`ssrOnly`| string | No |`ssr.js,ssr.mjs,server/**/*`| Comma-separated glob patterns for server-only files (SSR). These files are only included in the server bundle. |
38
-
|`ssrShared`| string | No |`static/**/*,client/**/*`| Comma-separated glob patterns for shared files. These files are included in both server and client bundles. |
39
+
|`ssrOnly`| string | No |Varies by project type | Glob patterns for server-only files (SSR), comma-separated or JSON array. These files are only included in the server bundle. |
40
+
|`ssrShared`| string | No |Varies by project type | Glob patterns for shared files, comma-separated or JSON array. These files are included in both server and client bundles. |
39
41
|`deploy`| boolean | No |`false`| Whether to deploy to an environment after push. When `true`, `environment` must be provided via `--environment` flag or `SFCC_MRT_ENVIRONMENT`. |
40
42
43
+
### Default values by project type
44
+
45
+
When `buildDirectory`, `ssrOnly`, or `ssrShared` are omitted, the tool detects the project type and applies these defaults:
46
+
47
+
**Generic** (used when no project type is detected; matches CLI `b2c mrt bundle deploy` defaults):
-`ssrOnly`: `server/**/*`, `loader.js`, `streamingHandler.{js,mjs,cjs}`, `streamingHandler.{js,mjs,cjs}.map`, `ssr.{js,mjs,cjs}`, `ssr.{js,mjs,cjs}.map`, `!static/**/*`, `sfnext-server-*.mjs`, plus exclusions for Storybook and test files
63
+
-`ssrShared`: `client/**/*`, `static/**/*`, `**/*.css`, image/font extensions, plus exclusions for Storybook and test files
0 commit comments