Dashboard template with Vue & UI Pro
Deploy

Deno Deploy

Deploy your Nuxt Application to Deno Deploy infrastructure.

Deno deploy preset is experimental.

Deploy with the CLI

You can use deployctl to deploy your app.

Login to Deno Deploy to obtain a DENO_DEPLOY_TOKEN access token, and set it as an environment variable.

# Build with the deno_deploy preset
npm run build --preset=deno_deploy

# Make sure to run the deployctl command from the output directory
cd .output
deployctl deploy --project=my-project server/index.ts --token=<DENO_DEPLOY_TOKEN>

Deploy within CI/CD using GitHub Actions

Link your GitHub repository to your Deno Deploy project and choose the "GitHub Actions" deployment mode. You can do this in your project settings on https://dash.deno.com.

Create a GitHub action file in your repository:

.github/workflows/deno_deploy.yml
name: deno-deploy
on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main
jobs:
  deploy:
    steps:
      - uses: actions/checkout@v3
      - run: corepack enable
      - uses: actions/setup-node@v3
        with:
          node-version: 18
          cache: pnpm
      - run: pnpm install
      - run: pnpm build
        env:
          NITRO_PRESET: deno_deploy
      - name: Deploy to Deno Deploy
        uses: denoland/deployctl@v1
        with:
          project: <my-project>
          entrypoint: server/index.ts
          root: .output
Make sure to rename <my-project> with your project name.

Templates

Nuxt Deno KV

A collaborative todo-list app built with Deno KV and Nuxt.

Learn more

Head over Nitro documentation to learn more about the deno-deploy deployment preset.