Skip to content

Commit

Permalink
OIA-40: Update plugin example with how to use dev env vars (#61)
Browse files Browse the repository at this point in the history
* add .env vars to allow plugins to target opennms

* update sample plugin to work with env vars

* add missing &&
  • Loading branch information
mikewrosey authored Jun 29, 2022
1 parent 2207d61 commit ac828e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ui-extension/.env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_BASE_V2_URL=http://localhost:8980/opennms/api/v2
VITE_BASE_REST_URL=http://localhost:8980/opennms/rest
VITE_BASE_URL=http://localhost:8980
2 changes: 1 addition & 1 deletion ui-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"dev": "vite --config vite.config.dev.ts",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview --port 5002"
"preview": "vite build --mode development && vite preview --port 5002"
},
"dependencies": {
"pinia": "^2.0.14",
Expand Down

0 comments on commit ac828e5

Please sign in to comment.