@tthr/vue 0.0.57 → 0.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
import { createError } from 'h3';
|
|
22
|
-
import { useRuntimeConfig } from '#imports';
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
24
|
* Get a Tether client for use in server-side code
|
|
@@ -28,11 +27,11 @@ import { useRuntimeConfig } from '#imports';
|
|
|
28
27
|
* @returns A Tether client with query, mutation, and storage methods
|
|
29
28
|
*/
|
|
30
29
|
export function useTetherServer(_event) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const apiKey =
|
|
34
|
-
const url =
|
|
35
|
-
const projectId =
|
|
30
|
+
// Use process.env directly to avoid #imports dependency
|
|
31
|
+
// The Nuxt module sets NUXT_TETHER_* vars from runtime config
|
|
32
|
+
const apiKey = process.env.NUXT_TETHER_API_KEY || process.env.TETHER_API_KEY;
|
|
33
|
+
const url = process.env.NUXT_TETHER_URL || process.env.TETHER_URL || 'https://tether-api.strands.gg';
|
|
34
|
+
const projectId = process.env.NUXT_TETHER_PROJECT_ID || process.env.TETHER_PROJECT_ID;
|
|
36
35
|
|
|
37
36
|
if (!apiKey) {
|
|
38
37
|
throw createError({
|