Skip to content

Commit 562c4bb

Browse files
authored
Merge pull request #365 from ReproNim/add-option-for-passing-schema-via-env-var
added envrionment variable to simplify switching schemas in UI
2 parents d6476e7 + 78646ac commit 562c4bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"bootstrap-vue": "^2.23.1",
1717
"bowser": "^2.11.0",
1818
"core-js": "^3.36.1",
19+
"dotenv": "^17.2.1",
1920
"file-saver": "^2.0.5",
2021
"jsonld": "^8.3.2",
2122
"jszip": "^3.10.1",

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
githubSrc: 'https://raw.githubusercontent.com/ReproNim/demo-protocol/main/DemoProtocol/DemoProtocol_schema',
2+
githubSrc: process.env.VUE_APP_REPROSCHEMA_GITHUB_SRC || 'https://raw.githubusercontent.com/ReproNim/demo-protocol/main/DemoProtocol/DemoProtocol_schema',
33
startButton: {
44
"en": 'Join',
55
"es": 'Participar'

0 commit comments

Comments
 (0)