create-better-t-stack 2.37.0-canary.6846bd90 → 2.38.0
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/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1389,7 +1389,7 @@ const getLatestCLIVersion = () => {
|
|
|
1389
1389
|
*/
|
|
1390
1390
|
function isTelemetryEnabled() {
|
|
1391
1391
|
const BTS_TELEMETRY_DISABLED = process.env.BTS_TELEMETRY_DISABLED;
|
|
1392
|
-
const BTS_TELEMETRY = "
|
|
1392
|
+
const BTS_TELEMETRY = "1";
|
|
1393
1393
|
if (BTS_TELEMETRY_DISABLED !== void 0) return BTS_TELEMETRY_DISABLED !== "1";
|
|
1394
1394
|
if (BTS_TELEMETRY !== void 0) return BTS_TELEMETRY === "1";
|
|
1395
1395
|
return true;
|
|
@@ -1397,8 +1397,8 @@ function isTelemetryEnabled() {
|
|
|
1397
1397
|
|
|
1398
1398
|
//#endregion
|
|
1399
1399
|
//#region src/utils/analytics.ts
|
|
1400
|
-
const POSTHOG_API_KEY = "
|
|
1401
|
-
const POSTHOG_HOST = "
|
|
1400
|
+
const POSTHOG_API_KEY = "phc_8ZUxEwwfKMajJLvxz1daGd931dYbQrwKNficBmsdIrs";
|
|
1401
|
+
const POSTHOG_HOST = "https://us.i.posthog.com";
|
|
1402
1402
|
function generateSessionId() {
|
|
1403
1403
|
const rand = Math.random().toString(36).slice(2);
|
|
1404
1404
|
const now = Date.now().toString(36);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.0",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,6 +33,16 @@ export const link = new RPCLink({
|
|
|
33
33
|
credentials: "include",
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
|
+
{{#if (includes frontend "next")}}
|
|
37
|
+
headers: async () => {
|
|
38
|
+
if (typeof window !== "undefined") {
|
|
39
|
+
return {}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const { headers } = await import("next/headers")
|
|
43
|
+
return Object.fromEntries(await headers())
|
|
44
|
+
},
|
|
45
|
+
{{/if}}
|
|
36
46
|
{{/if}}
|
|
37
47
|
});
|
|
38
48
|
|