Files
bracket/run.sh
Erik Vroon 583eb4e963 Migrate Next.js to Vite (#1397)
Vite is much simpler to use than Next.js and we don't need any of the
features Next has that Vite doesn't have.

Benefits of moving to Vite are:
- Much better performance in dev and prod environments
- Much better build times
- Actual support for static exports, no vendor lock-in of having to use
Vercel
- Support for runtime environment variables/loading config from `.env`
files
- No annoying backwards-incompatible changes on major releases of Next
- Better i18n support without having to define getServerSideProps on
every page
- Better bundle optimization
- No opt-out Vercel telemetry 

Also replaces yarn by pnpm and upgrades mantine to 8.3
2025-11-12 11:18:06 +01:00

21 lines
372 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
function run_frontend() {
cd frontend && pnpm run dev
}
function run_backend() {
cd backend && ENVIRONMENT=DEVELOPMENT uv run gunicorn \
-k bracket.uvicorn.RestartableUvicornWorker \
bracket.app:app \
--bind localhost:8400 \
--workers 1 \
--reload
}
(trap 'kill 0' SIGINT;
run_frontend &
run_backend
)