From 3a42b3eaa1cad0a7b452be3efe4bad238065f809 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Mon, 30 Sep 2024 23:28:14 +0100 Subject: [PATCH] add worker scripts to commerce example app --- examples/vercel-commerce/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/vercel-commerce/package.json b/examples/vercel-commerce/package.json index ce6165e6..b11c9f36 100644 --- a/examples/vercel-commerce/package.json +++ b/examples/vercel-commerce/package.json @@ -11,7 +11,10 @@ "start": "next start", "prettier": "prettier --write --ignore-unknown .", "prettier:check": "prettier --check --ignore-unknown .", - "test": "pnpm prettier:check" + "test": "pnpm prettier:check", + "build:worker": "cloudflare", + "dev:worker": "wrangler dev --port 8772", + "preview:worker": "pnpm build:worker && pnpm dev:worker" }, "dependencies": { "@headlessui/react": "^2.1.2",