---
title: "Comment by David on \"Using Vite to Serve and Hot-Reload React App & Express API Together\" | Hashnode"
description: "I'm curious how you would dockerize this. Everyone seems to take the approach of pulling express out into a separate port, but could logic here keep it simple?"
url: "https://hashnode.com/posts/using-vite-to-serve-and-hot-reload-react-app-express-api-together/63d676ef0eee226dca3e4fcb/comment/65df7982de9e22dc566d8197"
---

[Discussion](https://hashnode.com/posts/using-vite-to-serve-and-hot-reload-react-app-express-api-together/63d676ef0eee226dca3e4fcb)

Comment [Using Vite to Serve and Hot-Reload React App & Express API Together](https://hashnode.com/posts/using-vite-to-serve-and-hot-reload-react-app-express-api-together/63d676ef0eee226dca3e4fcb)

[David](https://hashnode.com/@davidhikesalot)

[Feb 28, 2024](https://hashnode.com/posts/using-vite-to-serve-and-hot-reload-react-app-express-api-together/63d676ef0eee226dca3e4fcb/comment/65df7982de9e22dc566d8197)

I'm curious how you would dockerize this. Everyone seems to take the approach of pulling express out into a separate port, but could logic here keep it simple?

[noam honig](https://hashnode.com/@noamhonig)

[Feb 29, 2024](https://hashnode.com/posts/using-vite-to-serve-and-hot-reload-react-app-express-api-together/63d676ef0eee226dca3e4fcb/comment/65df7982de9e22dc566d8197#reply-65e023fc191323cfffffaf82)

Hi David, I use vite as a development server - it was not intended as a production server. When I build it for production, vite generates a set of static files that are more efficient, and I use Express to serve these files.

Here's a link to a YouTube video where I do that live on stage: [youtu.be/TEtr9-WRGvU](https://youtu.be/TEtr9-WRGvU?si=IceCaVOp36nqzynA)

You can jump to minute 31 where I prepare the app for deployment and deploy it.
