透過超過 100 個訣竅學習 Nuxt!

resend
nuxt-resend

用於 Nuxt 的 Resend 整合

Nuxt Resend

npm versionnpm downloadsLicenseNuxt

ResendNuxt 整合。

快速設定

  1. nuxt-resend 相依性新增至您的專案
# Using npm
npm install --save-dev nuxt-resend

# Using pnpm
pnpm add -D nuxt-resend

# Using yarn
yarn add --dev nuxt-resend

# Using bun
bun add --D nuxt-resend
  1. nuxt-resend 新增至 nuxt.config.tsmodules 區段
export default defineNuxtConfig({
  modules: [
    'nuxt-resend'
  ]
})

將以下設定新增至您的 .env 檔案,並將 < > 中的值替換為您的 Resend API 金鑰。

NUXT_RESEND_API_KEY="<your_resend_api_key>"

就這樣!您現在可以在您的 Nuxt 應用程式中使用 Nuxt Resend 了 ✨

開發

# Install dependencies
pnpm install

# Generate type stubs
pnpm run dev:prepare

# Develop with the playground
pnpm run dev

# Build the playground
pnpm run dev:build

# Run checks
pnpm run check

# Run Vitest
pnpm run test
pnpm run test:watch

# Release new version
pnpm run release