Skip to content

Commit

Permalink
Update vite.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
knownotunknown committed Nov 2, 2024
1 parent 7c36616 commit 9a87c35
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ export default defineConfig({
solid({
ssr: false,
}),
{
name: 'log-server-start',
configureServer(server) {
server.httpServer?.once('listening', () => {
const address = server.httpServer?.address()
if (typeof address === 'object' && address !== null) {
console.log(`Server listening on port ${address.port}`)
}
})
},
},
],
server: {
port: 3000,
Expand Down

0 comments on commit 9a87c35

Please sign in to comment.