Compare commits
11 Commits
8f42a6664b
...
agent/code
| Author | SHA1 | Date | |
|---|---|---|---|
| 8ce9314887 | |||
| 40100cccab | |||
| a079598f9c | |||
| 263bee12dd | |||
| de815cb9c1 | |||
| bf48924644 | |||
| e90dccd8bb | |||
| 9c08cabcf7 | |||
| 8651a9aad1 | |||
| 860a5383b0 | |||
| 62f01f1db3 |
@@ -63,8 +63,10 @@ COPY --from=build /app/packages/game-engine packages/game-engine
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Coolify (and other hosts) override PORT at runtime; probe that port, not a
|
||||
# hardcoded one.
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
|
||||
CMD node -e "fetch('http://127.0.0.1:3000/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
||||
CMD node -e "fetch('http://127.0.0.1:' + (process.env.PORT || 3000) + '/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
|
||||
|
||||
# The Nuxt web server reads its config through Nuxt runtimeConfig, which is
|
||||
# baked at build time and overridden at runtime only by NUXT_-prefixed env
|
||||
|
||||
@@ -3,6 +3,13 @@ export default defineNuxtConfig({
|
||||
devtools: { enabled: false },
|
||||
css: ['~/assets/css/main.css'],
|
||||
modules: [],
|
||||
nitro: {
|
||||
// Nitro 2.10 resolves file-backed assets relative to its split runtime
|
||||
// chunk, which makes every /_nuxt request fail outside the Docker-only
|
||||
// symlink workaround. Embedding them keeps every production launcher
|
||||
// (preview, Docker, and managed hosts) on the same reliable code path.
|
||||
serveStatic: 'inline',
|
||||
},
|
||||
runtimeConfig: {
|
||||
aiProvider: process.env.AI_PROVIDER ?? 'openrouter',
|
||||
openrouterApiKey: process.env.OPENROUTER_API_KEY,
|
||||
|
||||
Reference in New Issue
Block a user