Enhance Vite Configuration and Add Docker Support #143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
enhancement, other
Description
5.0.10
and switched to@vitejs/plugin-react-swc
for better performance and compatibility.0.0.0.0
and port3000
.Dockerfile
anddocker-compose.yml
for containerization and orchestration.start
script inpackage.json
to use the--host
flag for compatibility with Docker.@swc/cli
and@swc/core
for SWC support.PR changes walkthrough
4 files
vite.config.js
vite.config.js
- Configured the server to run on
- Adjusted the order of
**- Updated the Vite configuration to use
@vitejs/plugin-react-swc
instead of@vitejs/plugin-react
.host
0.0.0.0
and port3000
.plugins, moving
reactRefresh
to the end of the pluginsarray.**
package.json
package.json
- Replaced
- Added
- Modified
**- Upgraded
vite
to version5.0.10
andvite-plugin-svgr
to version
4.2.0
.@vitejs/plugin-react
with@vitejs/plugin-react-swc
version3.5.0
.@swc/cli
and@swc/core
todevDependencies
.the
start
script to include the--host
flag.**Dockerfile
Dockerfile
- Exposed port
**- Added a
Dockerfile
to containerize the application.Set up a multi-stage build process to install dependencies
and copy source code.
3000
and specifiedthe command to run the application.**
docker-compose.yml
docker-compose.yml
- Configured the service to
**- Added a
docker-compose.yml
file to define and run theapplication as a Docker service.
build the Docker image, map port
3000
, and use a customnetwork.**
1 files
README.md
README.md
- Updated the README with instructions on how to run the
application using Docker Compose.