Cloudinary integration with for Nuxt
This is a module for version 3.X of Nuxt. If you are looking for Nuxt 2.X support check out the following branch and the legacy documentation here
- Nuxt 3 ready
- Useful
CldImage,CldOgImage&CldVideoPlayercomponents - Handy
useCldImageUrlcomposable - Automatically optimize images and deliver in modern formats
- Remove backgrounds from images
- Dynamically add image and text overlays to images
- Add
@nuxtjs/cloudinarydependency to your project
yarn add @nuxtjs/cloudinary
npm install @nuxtjs/cloudinary- Add
@nuxtjs/cloudinaryto themodulessection ofnuxt.config.ts
export default defineNuxtConfig({
modules: ['@nuxtjs/cloudinary'],
})See module options for more configuration options.
- Create .env file with following
CLOUDINARY_CLOUD_NAMEvariable:
CLOUDINARY_CLOUD_NAME=<YOUR_CLOUDINARY_CLOUD_NAME>And that's it! You can now use Cloudinary in Nuxt ✨
<template>
<CldImage
src="cld-sample-5"
width="987"
height="987"
alt="My Awesome Image"
/>
</template>- Clone this repository
- Install dependencies using
yarn installornpm install - Start development server using
npm run dev
