1.0.0 • Published 2 months ago

@rezo-zero/intervention-request-provider v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

intervention-request-provider

InterventionRequest provider for @nuxt/image

This is a Nuxt 3 module.

Installation

npm install --save-dev @rezo-zero/intervention-request-provider @nuxt/image
  • Register Nuxt module @rezo-zero/intervention-request-provider and @nuxt/image:
// nuxt.config.ts
modules: [
    '@rezo-zero/intervention-request-provider',
    '@nuxt/image'
]

!NOTE
@rezo-zero/intervention-request-provider extends the Nuxt Image configuration.
Therefore it must be registered before @nuxt/image.

Setup

baseUrl

  • As a runtime config variable (preferred)
#.env
NUXT_PUBLIC_INTERVENTION_REQUEST_BASE_URL=https://example.com/assets
  • As a @nuxt/image provider option
    // nuxt.config.ts
    image: {
        providers: {
            interventionRequest: {
                options: {
                    baseUrl: 'http://localhost'
                }
            }
        }
    }

noProcessBaseUrl

  • As a runtime config variable (preferred)
#.env
NUXT_PUBLIC_INTERVENTION_REQUEST_NO_PROCESS_BASE_URL=https://example.com/assets
  • As a @nuxt/image provider option
    // nuxt.config.ts
    image: {
        providers: {
            interventionRequest: {
                options: {
                    noProcessBaseUrl: 'https://example.com/images'
                }
            }
        }
    }

imagesPath (see InterventionRequest configuration)

  • As a runtime config variable (preferred)
#.env
NUXT_PUBLIC_INTERVENTION_REQUEST_IMAGES_PATH=images
    // nuxt.config.ts
    image: {
        providers: {
            interventionRequest: {
                options: {
                    imagesPath: 'images'
                }
            }
        }
    }

Operations available

See InterventionRequest operations

Contributing

  1. Clone this repository
  2. Install dependencies using npm install
  3. Start Docker server (InterventionRequest) using docker-compose up -d
  4. Start development server using npm run dev

Publishing

npm run release
1.0.0

2 months ago

1.0.0-next.7

12 months ago

0.3.4

12 months ago

0.3.3

12 months ago

1.0.0-next.1

1 year ago

1.0.0-next.2

1 year ago

1.0.0-next.3

1 year ago

1.0.0-next.4

1 year ago

1.0.0-next.5

1 year ago

1.0.0-next.6

1 year ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago