mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
ci(web): Vercel deploy (Flutter Web) + SPA rewrites
This commit is contained in:
parent
b9c6c98e38
commit
6b1750d8d1
17
.github/workflows/web-vercel.yml
vendored
Normal file
17
.github/workflows/web-vercel.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Deploy Web to Vercel
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [develop, main]
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: subosito/flutter-action@v2
|
||||||
|
with: { flutter-version: '3.22.0' }
|
||||||
|
- run: flutter pub get
|
||||||
|
- run: flutter build web --release --dart-define=API_BASE=https://api.tunestream.io
|
||||||
|
- run: npm i -g vercel
|
||||||
|
# deploy del directorio estático generado por Flutter
|
||||||
|
- run: vercel deploy --prod build/web --yes --token ${{ secrets.VERCEL_TOKEN }} --name tunestream-app
|
||||||
|
YAML < /dev/null
|
6
vercel.json
Normal file
6
vercel.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"cleanUrls": true,
|
||||||
|
"trailingSlash": false,
|
||||||
|
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
|
||||||
|
}
|
||||||
|
JSON < /dev/null
|
Loading…
Reference in New Issue
Block a user