tthr 0.0.13 → 0.0.14
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/dist/index.js +9 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -521,7 +521,7 @@ async function scaffoldNuxtProject(projectName, projectPath, spinner, packageMan
|
|
|
521
521
|
spinner.stop();
|
|
522
522
|
console.log(chalk3.dim("\nRunning nuxi init...\n"));
|
|
523
523
|
try {
|
|
524
|
-
execSync(`${runner} nuxi@latest init ${projectName} --packageManager ${packageManager} --gitInit false`, {
|
|
524
|
+
execSync(`${runner} nuxi@latest init ${projectName} --template minimal --packageManager ${packageManager} --gitInit false`, {
|
|
525
525
|
cwd: parentDir,
|
|
526
526
|
stdio: "inherit"
|
|
527
527
|
});
|
|
@@ -636,7 +636,7 @@ async function scaffoldVanillaProject(projectName, projectPath, spinner) {
|
|
|
636
636
|
|
|
637
637
|
const tether = createClient({
|
|
638
638
|
projectId: process.env.TETHER_PROJECT_ID!,
|
|
639
|
-
url: process.env.TETHER_URL || 'https://
|
|
639
|
+
url: process.env.TETHER_URL || 'https://tether-api.strands.gg',
|
|
640
640
|
});
|
|
641
641
|
|
|
642
642
|
async function main() {
|
|
@@ -673,7 +673,7 @@ export default defineConfig({
|
|
|
673
673
|
projectId: process.env.TETHER_PROJECT_ID,
|
|
674
674
|
|
|
675
675
|
// API endpoint (defaults to Tether Cloud)
|
|
676
|
-
url: process.env.TETHER_URL || 'https://
|
|
676
|
+
url: process.env.TETHER_URL || 'https://tether-api.strands.gg',
|
|
677
677
|
|
|
678
678
|
// Schema file location
|
|
679
679
|
schema: './tether/schema.ts',
|
|
@@ -869,7 +869,6 @@ export const remove = mutation({
|
|
|
869
869
|
);
|
|
870
870
|
const envContent = `# Tether Configuration
|
|
871
871
|
TETHER_PROJECT_ID=${projectId}
|
|
872
|
-
TETHER_URL=${isDev2 ? "http://localhost:3001" : "https://tether-api.strands.gg"}
|
|
873
872
|
TETHER_API_KEY=${apiKey}
|
|
874
873
|
`;
|
|
875
874
|
const envPath = path3.join(projectPath, ".env");
|
|
@@ -918,7 +917,7 @@ export default defineNuxtConfig({
|
|
|
918
917
|
|
|
919
918
|
tether: {
|
|
920
919
|
projectId: process.env.TETHER_PROJECT_ID,
|
|
921
|
-
url: process.env.TETHER_URL || 'https://
|
|
920
|
+
url: process.env.TETHER_URL || 'https://tether-api.strands.gg',
|
|
922
921
|
},
|
|
923
922
|
});
|
|
924
923
|
`
|
|
@@ -946,7 +945,7 @@ export default defineNuxtConfig({
|
|
|
946
945
|
|
|
947
946
|
tether: {
|
|
948
947
|
projectId: process.env.TETHER_PROJECT_ID,
|
|
949
|
-
url: process.env.TETHER_URL || 'https://
|
|
948
|
+
url: process.env.TETHER_URL || 'https://tether-api.strands.gg',
|
|
950
949
|
},
|
|
951
950
|
});
|
|
952
951
|
`
|
|
@@ -966,7 +965,7 @@ export function Providers({ children }: { children: React.ReactNode }) {
|
|
|
966
965
|
return (
|
|
967
966
|
<TetherProvider
|
|
968
967
|
projectId={process.env.NEXT_PUBLIC_TETHER_PROJECT_ID!}
|
|
969
|
-
url={process.env.NEXT_PUBLIC_TETHER_URL || 'https://
|
|
968
|
+
url={process.env.NEXT_PUBLIC_TETHER_URL || 'https://tether-api.strands.gg'}
|
|
970
969
|
>
|
|
971
970
|
{children}
|
|
972
971
|
</TetherProvider>
|
|
@@ -994,7 +993,6 @@ export function Providers({ children }: { children: React.ReactNode }) {
|
|
|
994
993
|
const envLocalPath = path3.join(projectPath, ".env.local");
|
|
995
994
|
const nextEnvContent = `# Tether Configuration (client-side)
|
|
996
995
|
NEXT_PUBLIC_TETHER_PROJECT_ID=\${TETHER_PROJECT_ID}
|
|
997
|
-
NEXT_PUBLIC_TETHER_URL=\${TETHER_URL}
|
|
998
996
|
`;
|
|
999
997
|
if (await fs3.pathExists(envLocalPath)) {
|
|
1000
998
|
const existing = await fs3.readFile(envLocalPath, "utf-8");
|
|
@@ -1013,14 +1011,13 @@ import { PUBLIC_TETHER_PROJECT_ID, PUBLIC_TETHER_URL } from '$env/static/public'
|
|
|
1013
1011
|
|
|
1014
1012
|
export const tether = createClient({
|
|
1015
1013
|
projectId: PUBLIC_TETHER_PROJECT_ID,
|
|
1016
|
-
url: PUBLIC_TETHER_URL || 'https://
|
|
1014
|
+
url: PUBLIC_TETHER_URL || 'https://tether-api.strands.gg',
|
|
1017
1015
|
});
|
|
1018
1016
|
`
|
|
1019
1017
|
);
|
|
1020
1018
|
const envPath = path3.join(projectPath, ".env");
|
|
1021
1019
|
const svelteEnvContent = `# Tether Configuration (public)
|
|
1022
1020
|
PUBLIC_TETHER_PROJECT_ID=\${TETHER_PROJECT_ID}
|
|
1023
|
-
PUBLIC_TETHER_URL=\${TETHER_URL}
|
|
1024
1021
|
`;
|
|
1025
1022
|
if (await fs3.pathExists(envPath)) {
|
|
1026
1023
|
const existing = await fs3.readFile(envPath, "utf-8");
|
|
@@ -1848,8 +1845,8 @@ async function requestDeviceCode() {
|
|
|
1848
1845
|
return {
|
|
1849
1846
|
deviceCode,
|
|
1850
1847
|
userCode,
|
|
1851
|
-
expiresIn:
|
|
1852
|
-
//
|
|
1848
|
+
expiresIn: 60,
|
|
1849
|
+
// 1 minute
|
|
1853
1850
|
interval: 5
|
|
1854
1851
|
// Poll every 5 seconds
|
|
1855
1852
|
};
|