mirror of
https://github.com/quepasaevents/qpa-client.git
synced 2023-12-14 05:33:02 +01:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
import express from "express"
|
|
import { httpSSRHandler } from "./handler"
|
|
import cookiesMiddleware from 'universal-cookie-express'
|
|
|
|
const port = 5000
|
|
console.log(`Starting SSR on port ${port}...`)
|
|
const app = express()
|
|
app.use(cookiesMiddleware()).get("/*", httpSSRHandler)
|
|
|
|
app.listen(port)
|
|
|
|
console.log("Successfully started")
|