-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathamplify.yml
More file actions
42 lines (42 loc) · 1.64 KB
/
Copy pathamplify.yml
File metadata and controls
42 lines (42 loc) · 1.64 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 1
applications:
- appRoot: frontend
frontend:
phases:
preBuild:
commands:
- npm ci
build:
commands:
- test -n "$VITE_TURNSTILE_SITE_KEY" || (echo "VITE_TURNSTILE_SITE_KEY is required" && exit 1)
- npm run build
artifacts:
baseDirectory: dist
files:
- '**/*'
cache:
paths:
- node_modules/**/*
buildSettings:
env:
variables:
# Add your API endpoint here after App Runner deployment
VITE_API_URL: https://tally-backend.33qpgck0g28d0.us-east-1.cs.amazonlightsail.com
VITE_APP_NAME: Tally
VITE_VALIDATOR_RPC_URL: https://rpc.testnet-chain.genlayer.com
customRules:
# Campaign vanity links: reverse-proxy the reserved /join/ namespace to
# the Django backend, which serves /join/<role>/<alias> directly. Must
# stay BEFORE the SPA catch-all (rules apply in order). One dynamic rule
# for all campaigns; never add per-campaign rules here.
# NOTE: production is served by CloudFront + S3, not Amplify; there the
# equivalent is a CloudFront behavior for /join/* with the backend as
# origin (caching disabled, query strings forwarded).
- source: '/join/<*>'
target: 'https://portal-admin.genlayer.foundation/join/<*>'
status: '200'
- source: '</^[^.]+$|\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json|webp)$)([^.]+$)/>'
target: '/index.html'
status: '200'
# Backend is handled by App Runner, not Amplify
# This configuration is for frontend-only deployment