load and display document
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import compression from "compression"
|
||||
import express from "express"
|
||||
import { dirname, join } from "node:path"
|
||||
import { fileURLToPath } from "node:url"
|
||||
@@ -8,6 +9,8 @@ const root = dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
const app = express()
|
||||
|
||||
app.use(compression())
|
||||
|
||||
let viteDevServer
|
||||
if (isProduction) {
|
||||
app.use(express.static(join(root, "dist/client")))
|
||||
|
||||
Reference in New Issue
Block a user