📄 SKILL.md

← Vault

name: tanstack-start-vps-static-assets-nginx

description: Fix TanStack Start (Lovable-style) showing blank page / 404 on assets when deployed to VPS — nginx must serve /assets/ directly, not proxy to Node.js.

tags:

- tanstack-start

- vps

- nginx

- static-assets


TanStack Start VPS — Static Assets 404 Fix

Context

When a TanStack Start app (built with target: "node-server") is deployed to VPS and shows:

Distinguishing from Similar Issues

SymptomCauseFix
---------------------
All assets 404, page blanknginx proxying /assets/ to NodeChange to alias
Port EADDRINUSEAnother process on same portkill -9 , restart
Docker "module not found"Corrupted Docker imageUse node directly
Vite build fails Node 18Node version too oldnvm use 20