From aefb6154e140ade9117f31f0ffce62a2ab5d940d Mon Sep 17 00:00:00 2001 From: Rohan <45748283+r100-stack@users.noreply.github.com> Date: Wed, 29 Jan 2025 07:28:14 -0500 Subject: [PATCH] Use serve --- apps/css-workshop/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/css-workshop/package.json b/apps/css-workshop/package.json index 45f5577d27d..87af549c2d9 100644 --- a/apps/css-workshop/package.json +++ b/apps/css-workshop/package.json @@ -17,11 +17,11 @@ "dev": "astro dev", "start": "astro dev", "build": "astro build", - "preview": "astro preview --host", + "preview": "npx -y serve dist --listen 3050 -L", "clean": "rimraf dist && rimraf node_modules && rimraf .turbo", "approve": "backstop --config=./backstop/backstop.cjs approve", "test:only": "backstop --config=./backstop/backstop.cjs test --docker", - "test": "npm-run-all -p -r \"preview\" \"test:only {1}\" --" + "test": "pnpm run preview & pnpm run test:only" }, "prettier": "configs/prettier-astro-config.js" }