mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-20 06:18:57 +00:00
new examples
This commit is contained in:
25
node/react/README.md
Normal file
25
node/react/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# React
|
||||
|
||||
A simple React example with Vite and React Router.
|
||||
|
||||
## Getting Started
|
||||
|
||||
```bash
|
||||
# Install dependencies
|
||||
npm install
|
||||
|
||||
# Development
|
||||
npm run dev
|
||||
|
||||
# Build for production
|
||||
VITE_BUILD_PUBLIC_VAR=your-value npm run build
|
||||
|
||||
# Start production server
|
||||
npm run start
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
This is a static site (SPA), so only build-time environment variables are supported:
|
||||
|
||||
- `VITE_BUILD_PUBLIC_VAR` - Set during build, baked into the bundle
|
||||
Reference in New Issue
Block a user