@tthr/vue 0.0.10 → 0.0.12
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.
package/nuxt/module.ts
CHANGED
|
@@ -45,7 +45,7 @@ export default defineNuxtModule<TetherModuleOptions>({
|
|
|
45
45
|
|
|
46
46
|
// Read env vars at build time
|
|
47
47
|
const apiKey = process.env.TETHER_API_KEY || '';
|
|
48
|
-
const url = options.url || process.env.TETHER_URL || 'https://api.
|
|
48
|
+
const url = options.url || process.env.TETHER_URL || 'https://tether-api.strands.gg';
|
|
49
49
|
const projectId = options.projectId || process.env.TETHER_PROJECT_ID || '';
|
|
50
50
|
|
|
51
51
|
// Server-side config (includes API key - never exposed to client)
|
|
@@ -64,12 +64,14 @@ export default defineNuxtModule<TetherModuleOptions>({
|
|
|
64
64
|
// Add server API routes for proxying Tether requests
|
|
65
65
|
addServerHandler({
|
|
66
66
|
route: '/api/_tether/query',
|
|
67
|
-
|
|
67
|
+
method: 'post',
|
|
68
|
+
handler: resolver.resolve('./runtime/server/query.post.ts'),
|
|
68
69
|
});
|
|
69
70
|
|
|
70
71
|
addServerHandler({
|
|
71
72
|
route: '/api/_tether/mutation',
|
|
72
|
-
|
|
73
|
+
method: 'post',
|
|
74
|
+
handler: resolver.resolve('./runtime/server/mutation.post.ts'),
|
|
73
75
|
});
|
|
74
76
|
|
|
75
77
|
// Add the client plugin for WebSocket subscriptions only
|
|
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
|
|
11
11
|
|
|
12
12
|
// Get API key from runtime config (populated from TETHER_API_KEY env var)
|
|
13
13
|
const apiKey = config.tether?.apiKey || process.env.TETHER_API_KEY;
|
|
14
|
-
const url = config.tether?.url || process.env.TETHER_URL || '
|
|
14
|
+
const url = config.tether?.url || process.env.TETHER_URL || 'https://tether-api.strands.gg';
|
|
15
15
|
const projectId = config.tether?.projectId || process.env.TETHER_PROJECT_ID;
|
|
16
16
|
|
|
17
17
|
if (!apiKey) {
|
|
@@ -11,7 +11,7 @@ export default defineEventHandler(async (event) => {
|
|
|
11
11
|
|
|
12
12
|
// Get API key from runtime config (populated from TETHER_API_KEY env var)
|
|
13
13
|
const apiKey = config.tether?.apiKey || process.env.TETHER_API_KEY;
|
|
14
|
-
const url = config.tether?.url || process.env.TETHER_URL || '
|
|
14
|
+
const url = config.tether?.url || process.env.TETHER_URL || 'https://tether-api.strands.gg';
|
|
15
15
|
const projectId = config.tether?.projectId || process.env.TETHER_PROJECT_ID;
|
|
16
16
|
|
|
17
17
|
if (!apiKey) {
|