Skip to content

Commit 1babb13

Browse files
authored
Change webpack config to support Heroku hosts (ToolJet#182)
* Change webpack config to support Heroku hosts * Update app.json for better instructions * Correction
1 parent 0297b5b commit 1babb13

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
"value": "production"
1616
},
1717
"TOOLJET_HOST": {
18-
"description": "Public URL of ToolJet installtion.",
19-
"value": "https://app.tooljet.io"
18+
"description": "Public URL of ToolJet installtion. This is usually https://<app-name-in-first-step>.herokuapp.com",
19+
"value": "https://<app-name-in-first-step>.herokuapp.com"
20+
},
21+
"TOOLJET_SERVER_URL": {
22+
"description": "URL of ToolJet server installtion. (This is same as the TOOLJET_HOST for Heroku deployments)",
23+
"value": "https://<app-name-in-first-step>.herokuapp.com"
2024
},
2125
"LOCKBOX_MASTER_KEY": {
2226
"description": "Key for encrypting datasource credentials.",

frontend/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path');
44
const environment = process.env.NODE_ENV === 'production' ? 'production' : 'development';
55

66
const API_URL = {
7-
production: 'https://server.tooljet.io',
7+
production: process.env.TOOLJET_SERVER_URL,
88
development: 'http://localhost:3000'
99
};
1010

0 commit comments

Comments
 (0)