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
Copy file name to clipboardExpand all lines: packages/homepage/content/docs/3-configuration.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,5 +32,6 @@ support these options:
32
32
|`hardReloadOnChange`| Whether we should refresh the sandbox page on every change, good for sandboxes with global state |`true`/`false`|`false`|
33
33
|`template`| Which sandbox template to use |[see here](https://github.com/codesandbox-app/codesandbox-importers/blob/master/packages/types/index.d.ts#L30-L54)| smart detection, w/ fallback to `create-react-app`|
34
34
| `view` | Which view to show first in the preview | Client: `browser`/`console`/`problems`/`tests`<br />Container: `browser`/`console`/`problems`/`terminal` | `browser`
35
-
|`container`| The container object contains the configurable port option, for example: `container: { port: 3212}`|
35
+
|`container`| The container object contains the configurable port and/or startScript option, for example: `container: { port: 3212, startScript: "custom"}`|
36
36
|`port`| The main port which the browser window listens to | 1024 - 65535 | First opened port inside the container. |
37
+
|`startScript`| Explicitly specify the start script used in a container sandbox, overriding the default value | A String matching a script name defined under `scripts` in `package.json`|`dev` / `develop` / `serve` / `start`|
0 commit comments