From 8f5278eb443864910dd9c2131c992d71e3af2d20 Mon Sep 17 00:00:00 2001 From: kartofen Date: Fri, 26 Aug 2022 23:54:17 +0300 Subject: Big bang --- server.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 server.mjs (limited to 'server.mjs') diff --git a/server.mjs b/server.mjs new file mode 100644 index 0000000..f554ee2 --- /dev/null +++ b/server.mjs @@ -0,0 +1,10 @@ +import express from 'express'; +import { handler as ssrHandler } from './dist/server/entry.mjs'; + +const app = express(); +app.use(express.static('dist/client/')) +app.use(ssrHandler); + +app.listen(8080); + +console.log('Server started'); \ No newline at end of file -- cgit v1.2.3