Implemented serve and copy-link development features
This commit is contained in:
parent
48a50320a8
commit
3dcffe7cef
7 changed files with 1214 additions and 4 deletions
16
index.js
Normal file
16
index.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
"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}`)
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue