Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ui-preview-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name: UI Preview Deploy
#
# Required repo secrets:
# CLOUDFLARE_API_TOKEN — token with "Workers Scripts:Edit" on the account
# CLOUDFLARE_ACCOUNT_ID — the Cloudflare account id that owns gittensory-ui
# CLOUDFLARE_ACCOUNT_ID — the Cloudflare account id that owns loopover-ui

on:
workflow_run:
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
cat > preview-dist/server/wrangler.preview.json <<'JSON'
{
"compatibility_date": "2026-05-28",
"name": "gittensory-ui",
"name": "loopover-ui",
"workers_dev": true,
"preview_urls": true,
"compatibility_flags": ["nodejs_compat"],
Expand Down Expand Up @@ -169,12 +169,12 @@ jobs:
run: |
set -o pipefail
out=$(wrangler versions upload --config preview-dist/server/wrangler.preview.json 2>&1 | tee /dev/stderr)
# Take a workers.dev URL that belongs to the gittensory-ui worker, so any other URL in the logs
# Take a workers.dev URL that belongs to the loopover-ui worker, so any other URL in the logs
# (or a changed output format) can't be recorded as the preview by mistake. Tolerant of the
# version-alias prefix (`<alias>-gittensory-ui.<sub>.workers.dev`).
url=$(printf '%s\n' "$out" | grep -oiE 'https://[a-z0-9.-]+\.workers\.dev' | grep -i 'gittensory-ui' | head -n1)
# version-alias prefix (`<alias>-loopover-ui.<sub>.workers.dev`).
url=$(printf '%s\n' "$out" | grep -oiE 'https://[a-z0-9.-]+\.workers\.dev' | grep -i 'loopover-ui' | head -n1)
if [ -z "$url" ]; then
echo "::error::Could not parse an expected gittensory-ui preview URL from wrangler output"
echo "::error::Could not parse an expected loopover-ui preview URL from wrangler output"
exit 1
fi
echo "preview_url=$url" >> "$GITHUB_OUTPUT"
Expand Down
2 changes: 1 addition & 1 deletion apps/gittensory-ui/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "../../node_modules/wrangler/config-schema.json",
"name": "gittensory-ui",
"name": "loopover-ui",
"workers_dev": true,
"preview_urls": true,
"compatibility_date": "2026-05-28",
Expand Down
4 changes: 2 additions & 2 deletions wrangler.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "node_modules/wrangler/config-schema.json",
// Auto-deploys to production via Cloudflare Workers Builds on push to `main`
// (deploy command: `npm run deploy:api` — applies pending D1 migrations, then `wrangler deploy`).
"name": "gittensory-api",
"name": "loopover-api",
"main": "src/index.ts",
"workers_dev": true,
"preview_urls": false,
Expand Down Expand Up @@ -252,7 +252,7 @@
"d1_databases": [
{
"binding": "DB",
"database_name": "gittensory",
"database_name": "loopover",
"database_id": "b2c79dd6-7771-4b1f-aa6b-085d5f3e9528",
"migrations_dir": "migrations",
},
Expand Down
Loading