# 1) build frontend
cd app
pnpm run build

# 2) copia la SPA nella cartella server/static
cd ..
rm -rf server/static/* && cp -R app/dist/spa/. server/static/

# 3) cross-compile per Windows (amd64)
cd server
GOOS=windows GOARCH=amd64 go build -o server_windows.exe main.go