mirror of
https://github.com/sunknudsen/privacy-guides.git
synced 2025-02-23 17:43:56 +00:00
17 lines
282 B
JavaScript
17 lines
282 B
JavaScript
|
"use strict"
|
||
|
|
||
|
import express from "express"
|
||
|
|
||
|
const app = express()
|
||
|
|
||
|
app.use(
|
||
|
express.static(".", {
|
||
|
dotfiles: "ignore",
|
||
|
index: false,
|
||
|
})
|
||
|
)
|
||
|
|
||
|
const server = app.listen(process.env.PORT ?? 8080, () => {
|
||
|
console.info(`Server listening on port ${server.address().port}`)
|
||
|
})
|