Skip to content

Vercel

Vercel is the most platform-shaped target in the list. Spry emits the extra wrapper files needed for it during build.

Example config

dart
import 'package:spry/config.dart';

void main() {
  defineSpryConfig(
    port: 3000,
    target: BuildTarget.vercel,
    reload: ReloadStrategy.hotswap,
  );
}

Good fit

  • Vercel-hosted server deployments
  • environments where Vercel is the operational default
  • teams that want platform-specific output without rewriting the route layer

Practical note

This target is where the generated output matters most. Keep your app code generic and let Spry shape the final wrapper for the platform.

Released under the MIT License.