We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52abcfb commit 9428511Copy full SHA for 9428511
2 files changed
src/api/gists.js
@@ -4,7 +4,11 @@ export const SHARE_FILENAME = "share.json";
4
export const VERSION_FILENAME = "versionned.json";
5
6
const description = "drawDB diagram";
7
-const baseUrl = import.meta.env.VITE_BACKEND_URL;
+
8
+const baseUrl =
9
+ import.meta.env.VITE_GIST_BACKEND_URL ||
10
+ import.meta.env.VITE_BACKEND_URL ||
11
+ "http://localhost:5000";
12
13
export async function create(filename, content) {
14
const res = await axios.post(`${baseUrl}/gists`, {
0 commit comments