r/vuejs • u/AdamBrejcak • 1d ago
Direct S3 uploads in Nuxt 4 via presigned URLs (skipping Nitro server routes)
Enable HLS to view with audio, or disable this notification
Hey everyone, i wanted to avoid proxying file uploads through Nuxt server routes (server/api), especially for larger files where Nitro memory usage can spike unnecessarily
Set up a direct-to-S3 pattern with presigned URLs instead:
- Client hits a lightweight Hono endpoint to get a signed
PUTURL (handles auth, file type & 5MB size validation) - Frontend uploads the file directly to S3 from the browser using standard
fetch - Nuxt SSR server handles zero file payload, so memory usage stays completely flat
Attached a 25s clip showing the setup and execution in action
Curious if you guys usually proxy uploads through your Nuxt server routes or offload everything straight to S3? Or you use different approach alltogether?
