mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
34 lines
536 B
Plaintext
34 lines
536 B
Plaintext
---
|
|
title: "Nuxt"
|
|
---
|
|
|
|
Prerequisite: [Install the CLI](/cli/overview)
|
|
|
|
## Initialize Infisical for your [Nuxt](https://nuxtjs.org) app
|
|
|
|
```bash
|
|
# move to your Nuxt app
|
|
cd /path/to/project
|
|
|
|
# initialize infisical
|
|
infisical init
|
|
```
|
|
|
|
## Modify the start script in your `package.json`
|
|
|
|
```json
|
|
...
|
|
"scripts": {
|
|
"dev": "infisical run -- nuxt",
|
|
"build": "infisical run -- nuxt build",
|
|
"start": "infisical run -- nuxt start"
|
|
}
|
|
...
|
|
```
|
|
|
|
## Start your development server with environment variables injected
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|