Skip to content

Instantly share code, notes, and snippets.

@dkotama
Created August 10, 2022 16:41
Show Gist options
  • Save dkotama/b63d4db887a4f8fbba67b83d994a4d99 to your computer and use it in GitHub Desktop.
Save dkotama/b63d4db887a4f8fbba67b83d994a4d99 to your computer and use it in GitHub Desktop.
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