Split Next.js across hosting providers and advocate for direct S3 uploads

from blog nickb.dev, | ↗ original
I was migrating a Next.js application (pdx.tools) from a self hosted instance to run serverless and edge functions over on Vercel. One serverless endpoint accepts an uploaded EU4 save file, parses it via a microservice, uploads to S3, and sticks the parsed data in Postgres. Conceptually, the endpoint can be written: export function POST(req:...