Add proxy dev server for local development
Adding proxy server to vue config to handle API requests
for local development. You need to create a .env.development.local file with
BASE_URL, VUE_APP_USERNAME, VUE_APP_PASSWORD defined.
Temporarily adding authentication to defaults until
login flow is functional.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ib1a1a992508fb9567af66ecb5775638e6ae6ee8d
diff --git a/vue.config.js b/vue.config.js
index f053ebf..c417595 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1 +1,5 @@
-module.exports = {};
+module.exports = {
+ devServer: {
+ proxy: process.env.BASE_URL
+ }
+};