@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
- const config = useRuntimeConfig();
32
-
33
- const apiKey = config.tether?.apiKey || process.env.TETHER_API_KEY;
34
- const url = config.tether?.url || process.env.TETHER_URL || 'https://tether-api.strands.gg';
35
- const projectId = config.tether?.projectId || process.env.TETHER_PROJECT_ID;
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({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tthr/vue",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "Tether Vue/Nuxt SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",