We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21254e commit d75c5b3Copy full SHA for d75c5b3
server.js
@@ -0,0 +1,14 @@
1
+
2
+const express = require('express');
3
+const server = express();
4
+const options = {
5
+ index: ['index.html','hostingstart.html']
6
+};
7
8
+server.use('/', express.static(__dirname, options));
9
10
+server.get('/*', (req, res) => {
11
+ res.sendFile(__dirname + "/" + options.index[0]);
12
+});
13
14
+server.listen(process.env.PORT);
0 commit comments