Skip to content

Commit 8d2964b

Browse files
committed
Fixed Server Issue
1 parent 0e36658 commit 8d2964b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,9 +587,9 @@ fastify.get('/api/admin/modlog', async (request, reply) => {
587587
})
588588

589589
// Serve static frontend in production
590-
// In Docker: dist/server/index.js serves dist/index.html + dist/assets/
590+
// In Docker: dist-server/index.js serves dist/index.html + dist/assets/
591591
const __dirname = path.dirname(fileURLToPath(import.meta.url))
592-
const staticRoot = path.join(__dirname, '..')
592+
const staticRoot = path.join(__dirname, '..', 'dist')
593593

594594
await fastify.register(fastifyStatic, {
595595
root: staticRoot,

0 commit comments

Comments
 (0)