Skip to content

Commit 1a9a3dc

Browse files
committed
Revert "web(ci): deploy prebuilt Flutter web directory directly; embed SPA fallback vercel.json into build/web to serve assets correctly (fonts, manifest)"
This reverts commit 32f5770.
1 parent e994a6d commit 1a9a3dc

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/test-deploy.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,7 @@ jobs:
193193
id: deploy-mobile
194194
run: |
195195
set -e
196-
# Include SPA fallback + filesystem in the deployed output
197-
cat > build/web/vercel.json <<'JSON'
198-
{
199-
"version": 2,
200-
"routes": [
201-
{ "handle": "filesystem" },
202-
{ "src": "/(.*)", "dest": "/index.html" }
203-
]
204-
}
205-
JSON
206-
207-
# Deploy the prebuilt directory directly to avoid rebuilding on Vercel
208-
DEPLOY_OUTPUT=$(npx vercel deploy build/web --prod --yes --token="$VERCEL_TOKEN")
196+
DEPLOY_OUTPUT=$(npx vercel deploy --prod --yes --token="$VERCEL_TOKEN")
209197
echo "$DEPLOY_OUTPUT"
210198
DEPLOY_URL=$(echo "$DEPLOY_OUTPUT" | grep -E "Production:" | grep -Eo 'https://[^[:space:]]+' | head -1)
211199
if [ -z "$DEPLOY_URL" ]; then

0 commit comments

Comments
 (0)