@etherna/vite-plugin
v1.3.1
Published
Vite plugin for Etherna services in Vite
Readme
Etherna Vite Plugin
Run all the Etherna services in your vite app locally.
Installation
npm install @etherna/vite-plugin
// or
yarn add @etherna/vite-plugin
// or
pnpm add @etherna/vite-pluginUsage
Prerequisites
- Make sure docker is installed and running.
// vite.config.ts
import { defineConfig } from 'vite'
import { etherna } from '@etherna/vite-plugin'
export default defineConfig({
plugins: [
// ...
etherna(),
],
})Opt out from services
// ...
etherna({
mongo: false,
bee: false,
}),
// ...Custom service options
// ...
etherna({
mongo: true,
gateway: {
enabled: true,
env: {
"Bee:DirectUrl": "http://localhost:16633",
"Bee:CachedUrl": "http://localhost:16633",
},
},
}),
// ...Disable all containers
// ...
etherna({
enabled: false,
}),
// ...This will skip the container startup and use the existing containers.
Useful when you want to run the containers separately.
