-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
29 lines (28 loc) · 829 Bytes
/
Copy pathrender.yaml
File metadata and controls
29 lines (28 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
services:
# Backend - Spring Boot API
- type: web
name: supply-chain-api
runtime: docker
plan: free
dockerfilePath: ./backend/supply-chain-visualizer/Dockerfile
dockerContext: ./backend/supply-chain-visualizer
envVars:
- key: SPRING_PROFILES_ACTIVE
value: h2
- key: JWT_SECRET
generateValue: true
- key: CORS_ALLOWED_ORIGINS
value: https://supply-chain-visualizer.onrender.com
# Frontend - React Static Site
- type: web
name: supply-chain-visualizer
runtime: static
buildCommand: cd frontend && npm install && npm run build
staticPublishPath: ./frontend/build
envVars:
- key: VITE_API_URL
value: https://supply-chain-api.onrender.com
routes:
- type: rewrite
source: /*
destination: /index.html