
Security News
AI Slop Is Polluting Bug Bounty Platforms with Fake Vulnerability Reports
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
@junobuild/vite-plugin
Advanced tools
A Vite plugin for Juno.
The plugin automatically loads your Satellite and Orbiter IDs.
With these values, you can instantiate Juno in your code without the need to manually define environment variables.
await Promise.all([initSatellite(), initOrbiter()]);
Those following environment variables are injected by this plugin:
Environment variable | Value in mode development | Value for other modes |
---|---|---|
VITE_SATELLITE_ID | jx5yt-yyaaa-aaaal-abzbq-cai | The Satellite ID for the mode from your Juno configuration file. |
VITE_ORBITER_ID | undefined | The Orbiter ID from your Juno configuration file. |
VITE_INTERNET_IDENTITY_ID | rdmx6-jaaaa-aaaaa-aaadq-cai | rdmx6-jaaaa-aaaaa-aaadq-cai |
VITE_ICP_LEDGER_ID | ryjl3-tyaaa-aaaaa-aaaba-cai | ryjl3-tyaaa-aaaaa-aaaba-cai |
VITE_ICP_INDEX_ID | qhbym-qaaaa-aaaaa-aaafq-cai | qhbym-qaaaa-aaaaa-aaafq-cai |
VITE_NNS_GOVERNANCE_ID | rrkah-fqaaa-aaaaa-aaaaq-cai | rrkah-fqaaa-aaaaa-aaaaq-cai |
VITE_CMC_ID | rkp4c-7iaaa-aaaaa-aaaca-cai | rkp4c-7iaaa-aaaaa-aaaca-cai |
VITE_
is the default prefix used by Vite. It can be customized as described in Vite's documentation.
npm i @junobuild/vite-plugin -D
// vite.config.js
import juno from '@junobuild/vite-plugin';
export default defineConfig({
plugins: [juno()]
});
The plugin can be customized using the optional juno
configuration object. This allows you to control how the Juno Docker container is used in your project, especially during local development or end-to-end (E2E) testing.
juno.container
Use the container option to enable, disable, or fine-tune the use of Juno Docker.
You can provide:
false
— to disable the container entirely.true
— to enable the container with default settings (only in development mode), which is also the default behavior.url
(string
, optional): A custom container URL, including the port. Example: http://127.0.0.1:8000modes
(string[]
, optional): An array of modes (e.g., ['development', 'test']) during which the container should be used.By default, the container is mounted only in development
mode.
// vite.config.js
import juno from '@junobuild/vite-plugin';
export default defineConfig({
plugins: [
juno({
container: {
url: 'http://127.0.0.1:8000',
modes: ['development', 'test']
}
})
]
});
MIT © David Dal Busco
FAQs
A Vite plugin for Juno
The npm package @junobuild/vite-plugin receives a total of 464 weekly downloads. As such, @junobuild/vite-plugin popularity was classified as not popular.
We found that @junobuild/vite-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AI-generated slop reports are making bug bounty triage harder, wasting maintainer time, and straining trust in vulnerability disclosure programs.
Research
Security News
The Socket Research team investigates a malicious Python package disguised as a Discord error logger that executes remote commands and exfiltrates data via a covert C2 channel.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.