fix: dev targets
This commit is contained in:
@@ -108,12 +108,12 @@ module.exports = configure(function ({ dev }) {
|
|||||||
secure: false,
|
secure: false,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||||
},
|
},
|
||||||
'/function': {
|
// '/function': {
|
||||||
target: 'https://6640382951eacb568371.f.appwrite.toal.ca/',
|
// target: 'https://6640382951eacb568371.f.appwrite.toal.ca/',
|
||||||
changeOrigin: true,
|
// changeOrigin: true,
|
||||||
secure: false,
|
// secure: false,
|
||||||
rewrite: (path) => path.replace(/^\/function/, ''),
|
// rewrite: (path) => path.replace(/^\/function/, ''),
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
// For reverse-proxying via haproxy
|
// For reverse-proxying via haproxy
|
||||||
// hmr: {
|
// hmr: {
|
||||||
|
|||||||
@@ -43,7 +43,11 @@ type AppwriteIDConfig = {
|
|||||||
|
|
||||||
let AppwriteIds = <AppwriteIDConfig>{};
|
let AppwriteIds = <AppwriteIDConfig>{};
|
||||||
|
|
||||||
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 = {
|
AppwriteIds = {
|
||||||
databaseId: '65ee1cbf9c2493faf15f',
|
databaseId: '65ee1cbf9c2493faf15f',
|
||||||
collection: {
|
collection: {
|
||||||
|
|||||||
Reference in New Issue
Block a user