page:recipes:csv import tool:next js:attachments

Host csv import tool with Next.js: file attachments

Summary

Deploy a csv import tool built with Next.js on Ample using the browser file uploads pattern. Compute runs the app in an isolated microVM behind a public HTTPS URL, a managed PostgreSQL 16 database is auto-provisioned and injected as DATABASE_URL, a private S3-compatible bucket holds objects with credentials delivered as encrypted environment variables. Verified on Next.js: content-type and size validation that rejects disallowed files, an object written to a private bucket and a row linking the record to the object key (reject=ok upload=ok linked=ok). Not separately tested: your upload UI, allowed types, size limits and virus scanning; treat the csv import tool-specific behavior as your application code.

Framework

Next.js

Workload

CSV import tool

Release Status

published

Support Status

verified

Execution Status

ready

Prerequisites

Tested Configuration

Input Schema

Workflow Steps

  1. Build and start: next build then next start -H 0.0.0.0 -p $PORT on the node-22 template. The server must bind 0.0.0.0 on PORT.
  2. Implement the pattern on PostgreSQL: Implements browser file uploads.
  3. Wire object storage: Pass endpoint, region, bucket and keys as --env values.
  4. Deploy: Run the synchronous deploy once and read the result.
  5. Verify: Fetch the live URL and the pattern self-test route(s) from the example.

Examples

Success Checks

Limitations

Cost Estimate