Skip to content

Commit 9428511

Browse files
authored
Add move local diagrams to cloud (#1063)
1 parent 52abcfb commit 9428511

2 files changed

Lines changed: 196 additions & 222 deletions

File tree

src/api/gists.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ export const SHARE_FILENAME = "share.json";
44
export const VERSION_FILENAME = "versionned.json";
55

66
const description = "drawDB diagram";
7-
const baseUrl = import.meta.env.VITE_BACKEND_URL;
7+
8+
const baseUrl =
9+
import.meta.env.VITE_GIST_BACKEND_URL ||
10+
import.meta.env.VITE_BACKEND_URL ||
11+
"http://localhost:5000";
812

913
export async function create(filename, content) {
1014
const res = await axios.post(`${baseUrl}/gists`, {

0 commit comments

Comments
 (0)