0.1.11 • Published 4 years ago

next-js-image-loader v0.1.11

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

Getting Started with NextJs Image Loader

In the project directory, you can run:

  yarn add next-js-image-loader

How To use

Required params:

Paramtype
srcString
widthNumber

Required env variable:

Variabletype
NEXT_PUBLIC_IMAGE_PROXY_SALTString
NEXT_PUBLIC_IMAGE_PROXY_KEYString
NEXT_PUBLIC_HOST_IMAGE_PROXYString

Code Example

  import Image from "next/image"
  import { loaderImage } from 'next-js-image-loader'

  function renderImage () {
    return (
      <>       
        <Image
          loader={loaderImage}
          src="https://storage.googleapis.com/cms-general-assets/logo/cms-media-idn-times.png"
          width={100}
          height={100} //optional props          
        />
      </>      
    )
  }
0.1.10

4 years ago

0.1.11

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.9

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago