Created
August 10, 2022 16:41
-
-
Save dkotama/b63d4db887a4f8fbba67b83d994a4d99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
app.use(express.static(__dirname + '/dist/skote')); | |
app.get('/*', function(req,res) { | |
res.sendFile(path.join(__dirname+ '/dist/skote/index.html')); | |
}); | |
app.listen(process.env.PORT || 8080); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment