dist folder added to backend

This commit is contained in:
2026-08-11 16:28:42 +02:00
parent a0dc17e346
commit d5895d91b6
6 changed files with 83 additions and 1 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+14
View File
@@ -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>
+3
View File
@@ -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'
})); }));
+1 -1
View File
@@ -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": {