Disable preview for a task in the tasks.json #8240
Unanswered
noam-honig
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have two tasks, one for the frontend (port:5173) and one for the api server (3002). I've configured my tasks.json without a preview for the api task - but it stills open the preview - how do I disbale that?
Here's my tasks.json
{ // These tasks will run in order when initializing your CodeSandbox project. "setupTasks": [ { "name": "Install Dependencies", "command": "yarn install" } ], // These tasks can be run from CodeSandbox. Running one will open a log in the app. "tasks": { "dev": { "name": "dev", "command": "yarn dev", "runAtStart": true, "preview": { "port": 5173 } }, "dev-node": { "name": "dev-node", "command": "yarn dev-node", "runAtStart": true } } }And here's my sandbox:
https://codesandbox.io/p/devbox/github/remult/react-vite-express-starter/tree/master/?file=%2F.codesandbox%2Ftasks.json%3A1%2C1-27%2C1
Beta Was this translation helpful? Give feedback.
All reactions