feat: Consolidate client and server into a single Docker image and update Docker Compose configuration.
This commit is contained in:
@@ -19,7 +19,11 @@ initDb();
|
||||
app.use('/api', routes);
|
||||
|
||||
// Serve static files from the React app build directory
|
||||
app.use(express.static(path.join(__dirname, '../client/dist')));
|
||||
// In Docker container, this is at /app/client/dist
|
||||
const staticPath = process.env.NODE_ENV === 'production'
|
||||
? path.join(__dirname, '../client/dist')
|
||||
: path.join(__dirname, '../client/dist');
|
||||
app.use(express.static(staticPath));
|
||||
|
||||
// Handle social previews for shared event links
|
||||
app.get('/event/:id', (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user