Skip to content

Commit d95643a

Browse files
authored
fix: bundle path (#141)
1 parent fe86247 commit d95643a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

frontend/vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default defineConfig({
1010
'@': path.resolve(__dirname, './src'),
1111
},
1212
},
13+
build: {
14+
outDir: path.resolve(__dirname, '../dist/public'),
15+
emptyOutDir: true,
16+
},
1317
server: {
1418
port: 5173,
1519
proxy: {

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ See documentation for more details on configuring database connections.
187187
});
188188

189189
// Serve static frontend files
190-
const frontendPath = path.join(__dirname, "..", "frontend", "dist");
190+
const frontendPath = path.join(__dirname, "public");
191191
app.use(express.static(frontendPath));
192192

193193
// Health check endpoint

0 commit comments

Comments
 (0)