mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix(console): endpoint using proxy in front of traefik
This commit is contained in:
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
@@ -3,9 +3,10 @@
|
||||
|
||||
window.ls.container.set('console', function (window) {
|
||||
var sdk = new window.Appwrite();
|
||||
var endpoint = window.location.origin + '/v1';
|
||||
|
||||
sdk
|
||||
.setEndpoint(APP_ENV.ENDPOINT + APP_ENV.API)
|
||||
.setEndpoint(endpoint)
|
||||
.setProject('console')
|
||||
.setLocale(APP_ENV.LOCALE)
|
||||
;
|
||||
|
||||
@@ -3,9 +3,10 @@
|
||||
|
||||
window.ls.container.set('sdk', function (window, router) {
|
||||
var sdk = new window.Appwrite();
|
||||
var endpoint = window.location.origin + '/v1';
|
||||
|
||||
sdk
|
||||
.setEndpoint(APP_ENV.ENDPOINT + APP_ENV.API)
|
||||
.setEndpoint(endpoint)
|
||||
.setProject(router.params.project || '')
|
||||
.setLocale(APP_ENV.LOCALE)
|
||||
.setMode('admin')
|
||||
|
||||
Reference in New Issue
Block a user