Deployment

Aleph.js allows you to export the application to a static site, which can run standalone on any server:

$ aleph build

or run it in production mode with Aleph.js server and get API route support in Deno:

$ deno run -A https://deno.land/x/aleph@v0.2.28/cli.ts start ${APP_DIR} --port 80

Deploy on Vercel

To deploy your app to Vercel, you need to configure your vercel project manually:

  • Build Command: curl -fsSL https://deno.land/x/install/install.sh | sh -s v1.6.3 && /vercel/.deno/bin/deno run -A https://deno.land/x/aleph@v0.2.28/cli.ts build
  • Output Directory: dist (outputDir, you can override it in aleph.config.js)
  • Environment Variables: NO_COLOR (recommended)
  • API Routes (Functions): currently not supported

See the hello-world example on Vercel.

Deploy on Fleek

To deploy your app to Fleek, you need to configure your fleek project manually:

  • Build Command: deno run -A https://deno.land/x/aleph@v0.2.28/cli.ts build
  • Docker Image Name: hayd/deno:1.6.3
  • Output Directory: dist (outputDir, you can override it in aleph.config.js)
  • Environment Variables: NO_COLOR (recommended)
  • API Routes (Functions): currently not supported