N
Nuxt3mo ago
mjClegg

Firestore deploy in App Hosting

Dear All Does anyone has experience with hosting Nuxt application on Firebase App hosting. Despite numerous attempts and appHosting.yaml configuration keep getting container (misconfigured) - port errors (timeout). Anybody having similar issues?? Thanks! MC
2 Replies
kapa.ai
kapa.ai3mo ago
Hi @mjClegg. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not contain specific information about deploying a Nuxt application to Firebase App Hosting (the new Firebase App Hosting product). There are several references to deploying Nuxt apps to other environments such as Node.js servers, Docker, Google App Engine, and static hosting, but nothing directly addresses Firebase App Hosting or the specific "container (misconfigured) - port errors (timeout)" you mentioned. If you are deploying to a container-based environment, make sure your Nuxt app is configured to listen on the correct host and port. For example, in Docker or similar environments, you typically need to set the host to 0.0.0.0 and the port to the one expected by the platform:
// nuxt.config.ts
export default defineNuxtConfig({
nitro: {
// other config...
},
server: {
port: 8080, // or the port required by Firebase App Hosting
host: '0.0.0.0' // listen on all interfaces
}
})
// nuxt.config.ts
export default defineNuxtConfig({
nitro: {
// other config...
},
server: {
port: 8080, // or the port required by Firebase App Hosting
host: '0.0.0.0' // listen on all interfaces
}
})
Or set environment variables:
HOST=0.0.0.0
PORT=8080
HOST=0.0.0.0
PORT=8080
This is a common requirement for containerized deployments, as seen in other hosting scenarios like Docker and Google App Engine, but again, there is no explicit mention of Firebase App Hosting in the sources provided. If you continue to experience issues, I recommend checking Firebase's official documentation for App Hosting or reaching out to their support channels. If you have more details or logs, feel free to share them, and I can help interpret them based on the available Nuxt deployment knowledge. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai3mo ago
<@794236449254932528> Kapa.ai is still learning and improving, please let me know how I did by reacting below.

Did you find this page helpful?