https://github.com/zeropsio/recipe-react-static
React Static on Zerops
https://github.com/zeropsio/recipe-react-static
Last synced: 5 months ago
JSON representation
React Static on Zerops
- Host: GitHub
- URL: https://github.com/zeropsio/recipe-react-static
- Owner: zeropsio
- Created: 2024-07-22T10:45:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T14:16:26.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T02:19:01.396Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 56.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zerops x React - Static
React is a JavaScript web library for building fast, dynamic full-stack web apps with both server-side rendering and static site generation. Zerops makes deploying and running React apps, both server-side rendered and static, a breeze.
This recipe showcases the SSG version, see [zeropsio/recipe-react-nodejs](https://github.com/zeropsio/recipe-react-nodejs) for the SSR Node.js version.

## Deploy to Zerops
You can either click the deploy button to deploy directly on Zerops, or manually copy the [import yaml](https://github.com/zeropsio/recipe-react-static/blob/main/zerops-project-import.yml) to the import dialog in the Zerops app.
[](https://app.zerops.io/recipe/react-static)
## Recipe features
- Latest version of **React + Vite** with SSG running on a load balanced **Zerops Static** service.
## Production vs. development
This recipe is ready for production as is, and will scale horizontally by adding more containers in case of high traffic surges. If you want to achieve the highest baseline reliability and resilience, start with at least two containers (add `minContainers: 2` in recipe YAML in the `app` service section, or change the minimum containers in "Automatic Scaling configuration" section of service detail).
## Changes made over the default installation
If you want to modify your existing React app to efficiently run on Zerops, no changes are needed in the codebase beyond the standard installation. Just add the [zerops.yml](https://github.com/zeropsio/recipe-react-static/blob/main/zerops.yml) file to your repository.
Need help setting your project up? Join [Zerops Discord community](https://discord.com/invite/WDvCZ54).