aboutsummaryrefslogtreecommitdiff
path: root/server.mjs
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-26 23:54:17 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-26 23:54:17 +0300
commit8f5278eb443864910dd9c2131c992d71e3af2d20 (patch)
treed56d805fa010e4b10af7dec0ed359f218e859667 /server.mjs
Big bang
Diffstat (limited to 'server.mjs')
-rw-r--r--server.mjs10
1 files changed, 10 insertions, 0 deletions
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