17 lines
444 B
JavaScript
17 lines
444 B
JavaScript
require('dotenv').config({ path: '.env.local.server' });
|
|
const express = require('express');
|
|
const { createProxyMiddleware } = require('http-proxy-middleware');
|
|
const path = require('path');
|
|
|
|
const app = express();
|
|
|
|
app.use(express.static(path.join(__dirname, 'dist')));
|
|
|
|
app.get('*', (req, res) => {
|
|
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
|
|
});
|
|
|
|
app.listen(8089, () => {
|
|
console.log('Server is running on port 8089');
|
|
});
|