InterventionRequest provider for @nuxt/image
This is a Nuxt 3 module.
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
.
- 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'
}
}
}
}
- 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'
}
}
}
}
See InterventionRequest operations
- Clone this repository
- Install dependencies using
npm install
- Start Docker server (InterventionRequest) using
docker-compose up -d
- Start development server using
npm run dev
npm run release