mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-14 17:54:42 +00:00
Make the production compose stack deployable and disclose the AI-generated catalogue (#329)
This commit is contained in:
@@ -6,6 +6,12 @@ const app = express();
|
||||
app.use('/assets', express.static('build/client/assets', { immutable: true, maxAge: '1y' }));
|
||||
app.use(express.static('build/client', { maxAge: '1h' }));
|
||||
|
||||
// Answers from Express alone so the container health check reports on this
|
||||
// process only, independent of whether the API is reachable yet.
|
||||
app.get('/healthz', (_req, res) => {
|
||||
res.status(200).type('text/plain').send('ok');
|
||||
});
|
||||
|
||||
const requestHandler = createRequestHandler({
|
||||
build: () => import('./build/server/index.js'),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user