diff options
Diffstat (limited to 'server.mjs')
-rw-r--r-- | server.mjs | 10 |
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 |