mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
vite environment variables, also typed
This commit is contained in:
@@ -85,8 +85,9 @@
|
||||
query.value = decodeURIComponent(params.get("query"));
|
||||
}
|
||||
|
||||
const { ELASTIC } = process.env;
|
||||
if (ELASTIC === undefined || ELASTIC === "") {
|
||||
const ELASTIC_URL = import.meta.env.VITE_ELASTIC_URL;
|
||||
const ELASTIC_API_KEY = import.meta.env.VITE_ELASTIC_API_KEY;
|
||||
if (!ELASTIC_URL || !ELASTIC_API_KEY) {
|
||||
disabled.value = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user