aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorNick Coutsos <[email protected]>2021-10-03 16:04:28 -0400
committerNick Coutsos <[email protected]>2021-10-03 16:04:28 -0400
commitcc1ef58861a7b06db2b55a6e2e0e753804eba210 (patch)
tree2b73d0a1dfb0ee5241441fd5363c1884a6447ed4 /application
parent0893d874ce2dd22446debcfe61659696e5c297fc (diff)
downloadkeymap-editor-cc1ef58861a7b06db2b55a6e2e0e753804eba210.tar.gz
keymap-editor-cc1ef58861a7b06db2b55a6e2e0e753804eba210.zip
Pages deploy
Diffstat (limited to 'application')
-rw-r--r--application/api.js8
-rw-r--r--application/package.json3
2 files changed, 6 insertions, 5 deletions
diff --git a/application/api.js b/application/api.js
index 0e88a6b..fd2c85c 100644
--- a/application/api.js
+++ b/application/api.js
@@ -1,19 +1,19 @@
import * as config from './config'
export function loadBehaviours() {
- return fetch(`/behaviors?firmware=${config.library}`).then(response => response.json())
+ return fetch(`${config.apiBaseUrl}/behaviors?firmware=${config.library}`).then(response => response.json())
}
export function loadKeycodes() {
- return fetch(`/keycodes?firmware=${config.library}`).then(response => response.json())
+ return fetch(`${config.apiBaseUrl}/keycodes?firmware=${config.library}`).then(response => response.json())
}
export function loadKeymap() {
- return fetch(`/keymap?firmware=${config.library}`)
+ return fetch(`${config.apiBaseUrl}/keymap?firmware=${config.library}`)
.then(response => response.json())
}
export function loadLayout() {
- return fetch(`/layout?firmware=${config.library}`)
+ return fetch(`${config.apiBaseUrl}/layout?firmware=${config.library}`)
.then(response => response.json())
}
diff --git a/application/package.json b/application/package.json
index 50b0306..054d748 100644
--- a/application/package.json
+++ b/application/package.json
@@ -4,7 +4,8 @@
"description": "",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
- "build-watch": "webpack build --mode development --watch"
+ "build-watch": "webpack build --mode development --watch",
+ "build": "webpack build --mode production"
},
"keywords": [],
"author": "",