Skip to content

Commit 1c475a1

Browse files
committed
add logging for epicme startup
1 parent e2121a2 commit 1c475a1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
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 = 7788
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: 7788,
11-
},
15+
server: { port },
1216
plugins: [
1317
{
1418
name: 'strip-typegen-imports',

0 commit comments

Comments
 (0)