Fix imports
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 1m58s
All checks were successful
Build BAB Application Deployment Artifact / build (push) Successful in 1m58s
This commit is contained in:
@@ -14,25 +14,32 @@ import type { Router } from 'vue-router';
|
|||||||
|
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
let VITE_APPWRITE_API_ENDPOINT, VITE_APPWRITE_API_PROJECT;
|
// let VITE_APPWRITE_API_ENDPOINT, VITE_APPWRITE_API_PROJECT;
|
||||||
|
|
||||||
// Private self-hosted appwrite
|
// Private self-hosted appwrite
|
||||||
if (
|
// if (
|
||||||
process.env.VITE_APPWRITE_API_ENDPOINT &&
|
// process.env.VITE_APPWRITE_API_ENDPOINT &&
|
||||||
process.env.VITE_APPWRITE_API_PROJECT
|
// process.env.VITE_APPWRITE_API_PROJECT
|
||||||
) {
|
// ) {
|
||||||
VITE_APPWRITE_API_ENDPOINT = process.env.VITE_APPWRITE_API_ENDPOINT;
|
const VITE_APPWRITE_API_ENDPOINT = import.meta.env.VITE_APPWRITE_API_ENDPOINT;
|
||||||
VITE_APPWRITE_API_PROJECT = process.env.VITE_APPWRITE_API_PROJECT;
|
const VITE_APPWRITE_API_PROJECT = import.meta.env.VITE_APPWRITE_API_PROJECT;
|
||||||
} else if (process.env.DEV) {
|
// }
|
||||||
VITE_APPWRITE_API_ENDPOINT = 'http://localhost:4000/api/v1';
|
// } else if (process.env.DEV) {
|
||||||
VITE_APPWRITE_API_PROJECT = '65ede55a213134f2b688';
|
// VITE_APPWRITE_API_ENDPOINT = 'http://localhost:4000/api/v1';
|
||||||
|
// VITE_APPWRITE_API_PROJECT = '65ede55a213134f2b688';
|
||||||
|
// } else {
|
||||||
|
// VITE_APPWRITE_API_ENDPOINT = 'https://appwrite.oys.undock.ca/v1';
|
||||||
|
// VITE_APPWRITE_API_PROJECT = 'bab';
|
||||||
|
// }
|
||||||
|
if (VITE_APPWRITE_API_ENDPOINT && VITE_APPWRITE_API_PROJECT) {
|
||||||
|
client
|
||||||
|
.setEndpoint(VITE_APPWRITE_API_ENDPOINT)
|
||||||
|
.setProject(VITE_APPWRITE_API_PROJECT);
|
||||||
} else {
|
} else {
|
||||||
VITE_APPWRITE_API_ENDPOINT = 'https://appwrite.oys.undock.ca/v1';
|
console.error(
|
||||||
VITE_APPWRITE_API_PROJECT = 'bab';
|
'Must configure VITE_APPWRITE_API_ENDPOINT and VITE_APPWRITE_API_PROJECT'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
client
|
|
||||||
.setEndpoint(VITE_APPWRITE_API_ENDPOINT)
|
|
||||||
.setProject(VITE_APPWRITE_API_PROJECT);
|
|
||||||
|
|
||||||
const pwresetUrl = process.env.DEV
|
const pwresetUrl = process.env.DEV
|
||||||
? 'http://localhost:4000/pwreset'
|
? 'http://localhost:4000/pwreset'
|
||||||
|
|||||||
Reference in New Issue
Block a user