Skip to content

Point Vercel /uploads rewrite at the Render backend - #3

Merged
Derdiry merged 1 commit into
mainfrom
point-to-render
Nov 2, 2026
Merged

Derdiry merged 1 commit into
mainfrom
point-to-render

Conversation

@Derdiry

@Derdiry Derdiry commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • vercel.json: the /uploads/:file rewrite now goes to https://portfolio-api-63am.onrender.com/api/uploads/:file. It used to point at the dead Railway URL. This was the only rewrite pointing at Railway; the other is the SPA fallback.
  • README.md: the deploy checklist and the VITE_API_URL example now name Render + Neon, and link to DEPLOY.md.
  • src/lib/api.ts: comment updated (Railway → Render). No code change.

Left as is: both railway.toml files, which are already marked unused, and the SudanWiki card's "Railway, Render" deployment claim, which is pending verification.

Before merging

Set VITE_API_URL = https://portfolio-api-63am.onrender.com in Vercel (Production and Preview). The production deploy triggered by this merge will then pick it up at build time.

Testing

  • npm run build passes, and vercel.json is valid JSON.
  • On Render:
    • GET /api/uploads/missing.jpg returns 404, so the rewrite target route exists.
    • The CORS preflight from https://www.moderdiry.com is allowed.
    • The verified gold project content is served.

🤖 Generated with Claude Code

Replace the dead Railway URL (portfolio-production-223d.up.railway.app)
with https://portfolio-api-63am.onrender.com in vercel.json, and update
the README and an api.ts comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
my_website Ready Ready Preview Nov 1, 2026 9:37am UTC

@Derdiry
Derdiry merged commit 0f2e02e into main Nov 2, 2026
3 checks passed
@Derdiry
Derdiry deleted the point-to-render branch November 2, 2026 05:42

This branch was successfully deployed

1 active deployment
Preview — 4f16d3d0 Deployed Nov 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant