From d9cd4b18d3c664b3b7b412e7cae6505b3d94376e Mon Sep 17 00:00:00 2001 From: Nutthapat Pongtanyavichai Date: Tue, 24 Dec 2024 15:23:41 +0700 Subject: [PATCH] change default port of apps --- apps/storybook/package.json | 2 +- apps/web/package.json | 2 +- apps/web/vite.config.ts | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/storybook/package.json b/apps/storybook/package.json index f07670c21..bfe916e10 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "storybook dev -p 6006", + "dev": "storybook dev -p 5342", "build": "storybook build", "check": "svelte-check --tsconfig ./tsconfig.json", "lint": "eslint . && prettier --check \"src/**/*.mdx\"", diff --git a/apps/web/package.json b/apps/web/package.json index 74fd8ece6..fd4ef14d3 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -4,7 +4,7 @@ "private": true, "type": "module", "scripts": { - "dev": "vite dev", + "dev": "vite dev --clearScreen false", "build": "vite build", "preview": "vite preview", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.ts index ded32f167..f1cc3e27f 100644 --- a/apps/web/vite.config.ts +++ b/apps/web/vite.config.ts @@ -12,9 +12,12 @@ export default defineConfig({ }, }, server: { - port: 5173, + port: 5343, fs: { allow: ['../../packages/ui/src'], }, }, + preview: { + port: 4343, + }, })