mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add Nuxt, Remix, Vue framework integration instructions to docs
This commit is contained in:
@@ -2,4 +2,38 @@
|
||||
title: "Vue"
|
||||
---
|
||||
|
||||
Coming soon.
|
||||
Prerequisite: [Install the CLI](/cli/overview)
|
||||
|
||||
## Initialize Infisical for your [Vue](https://vuejs.org) app
|
||||
|
||||
```bash
|
||||
# move to your Vue app
|
||||
cd /path/to/project
|
||||
|
||||
# initialize infisical
|
||||
infisical init
|
||||
```
|
||||
|
||||
## Modify the start script in your `package.json`
|
||||
|
||||
```json
|
||||
...
|
||||
"scripts": {
|
||||
"serve": "infisical run -- vue-cli-service serve",
|
||||
"build": "infisical run -- vue-cli-service build",
|
||||
"lint": "infisical run -- vue-cli-service lint"
|
||||
}
|
||||
...
|
||||
```
|
||||
|
||||
## Start your development server with environment variables injected
|
||||
|
||||
```bash
|
||||
npm run serve
|
||||
```
|
||||
|
||||
<Note>
|
||||
Note that for environment variables to be exposed to the client, you'll have
|
||||
to prefix them with `VUE_APP` Read more about that
|
||||
[here](https://cli.vuejs.org/guide/mode-and-env.html).
|
||||
</Note>
|
||||
|
||||
Reference in New Issue
Block a user