Skip to content

Commit 4e1377e

Browse files
committed
add logging for epicmeapp startup
1 parent bf1db29 commit 4e1377e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

epicshop/epic-me/vite.config.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@ import { defineConfig } from 'vite'
55
import devtoolsJson from 'vite-plugin-devtools-json'
66
import tsconfigPaths from 'vite-tsconfig-paths'
77

8+
const port = 7787
9+
if (!(globalThis as any).loggedPort) {
10+
console.log(`EpicMeApp running at http://localhost:${port}`)
11+
;(globalThis as any).loggedPort = true
12+
}
13+
814
export default defineConfig({
9-
server: {
10-
port: 7787,
11-
},
15+
server: { port },
1216
plugins: [
1317
{
1418
name: 'strip-typegen-imports',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"title": "MCP UI 🪟",
66
"subtitle": "Go beyond text interaction in AI Chat",
77
"sidecarProcesses": {
8-
"EpicMeApp": "npm run dev --prefix ./epicshop/epic-me -- --clearScreen=false --logLevel=error --strictPort"
8+
"EpicMeApp": "npm run dev --silent --prefix ./epicshop/epic-me -- --clearScreen=false --logLevel=error --strictPort"
99
},
1010
"githubRepo": "https://github.com/epicweb-dev/mcp-ui",
1111
"subdomain": "mcp-ui",

0 commit comments

Comments
 (0)