Skip to content

Commit 525f59c

Browse files
committed
🐛 fixed clienthost URL and redirection path after creating a dashboard (fixes #9)
1 parent f6c2e6d commit 525f59c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

admin/src/pages/Create/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ function Create() {
137137
})
138138
.then(() => {
139139
setTimeout(() => {
140-
location.pathname = `/plugins/${pluginId}`; // eslint-disable-line
140+
location.pathname = `/admin/plugins/${pluginId}`;
141141
setGenerating(false);
142142
}, 1000);
143143
})

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/services/chartbrew.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async function createDefaultConfig() {
1818
const pluginStore = getPluginStore();
1919
const value = {
2020
host: 'https://api.chartbrew.com',
21-
clientHost: 'https://api.chartbrew.com',
21+
clientHost: 'https://app.chartbrew.com',
2222
token: '',
2323
hasToken: false,
2424
};

0 commit comments

Comments
 (0)