첫 커밋
This commit is contained in:
16
server.js
Normal file
16
server.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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');
|
||||
});
|
||||
Reference in New Issue
Block a user