diff --git a/quasar.config.js b/quasar.config.js index ae287fe..d424a97 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -108,12 +108,12 @@ module.exports = configure(function ({ dev }) { secure: false, rewrite: (path) => path.replace(/^\/api/, ''), }, - '/function': { - target: 'https://6640382951eacb568371.f.appwrite.toal.ca/', - changeOrigin: true, - secure: false, - rewrite: (path) => path.replace(/^\/function/, ''), - }, + // '/function': { + // target: 'https://6640382951eacb568371.f.appwrite.toal.ca/', + // changeOrigin: true, + // secure: false, + // rewrite: (path) => path.replace(/^\/function/, ''), + // }, }, // For reverse-proxying via haproxy // hmr: { diff --git a/src/boot/appwrite.ts b/src/boot/appwrite.ts index 5b9b861..cf0f078 100644 --- a/src/boot/appwrite.ts +++ b/src/boot/appwrite.ts @@ -43,7 +43,11 @@ type AppwriteIDConfig = { let AppwriteIds = {}; -if (API_ENDPOINT === 'https://apidev.bab.toal.ca/v1') { +console.log(API_ENDPOINT); +if ( + API_ENDPOINT === 'https://apidev.bab.toal.ca/v1' || + API_ENDPOINT === 'http://localhost:4000/api/v1' +) { AppwriteIds = { databaseId: '65ee1cbf9c2493faf15f', collection: {