dist folder added to backend
This commit is contained in:
Vendored
BIN
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
+1
File diff suppressed because one or more lines are too long
+64
File diff suppressed because one or more lines are too long
Vendored
+14
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="eng">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="icon" type="image/png" href="/alma_logo.png" />
|
||||||
|
<title>App</title>
|
||||||
|
<script type="module" crossorigin src="/assets/index-C5qfWTJz.js"></script>
|
||||||
|
<link rel="stylesheet" crossorigin href="/assets/index-BpzX4t_X.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -11,6 +11,9 @@ const {
|
|||||||
} = require('./services');
|
} = require('./services');
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
|
const frontendDistPath = path.join(__dirname, '../dist');
|
||||||
|
|
||||||
|
app.use(express.static(frontendDistPath));
|
||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: 'http://localhost:5173'
|
origin: 'http://localhost:5173'
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build && rm -rf ../backend/dist && cp -R dist ../backend/dist",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user