sajt/serve.js

11 lines
260 B
JavaScript
Raw Normal View History

2024-10-17 23:51:03 +02:00
import express from 'express'
2024-10-11 11:11:40 +02:00
const app = express()
const PORT = process.env.PORT || 3000
export function serve() {
app.use(express.static('./.build'))
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`)
})
}