mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
TEST
This commit is contained in:
@@ -2,8 +2,8 @@ import { PostHog } from "posthog-node";
|
||||
import type { ProjectConfig } from "../types";
|
||||
import { getLatestCLIVersion } from "./get-latest-cli-version";
|
||||
|
||||
const POSTHOG_API_KEY = "phc_8ZUxEwwfKMajJLvxz1daGd931dYbQrwKNficBmsdIrs";
|
||||
const POSTHOG_HOST = "https://us.i.posthog.com";
|
||||
const POSTHOG_API_KEY = process.env.POSTHOG_API_KEY || "";
|
||||
const POSTHOG_HOST = process.env.POSTHOG_HOST;
|
||||
|
||||
export async function trackProjectCreation(
|
||||
config: ProjectConfig,
|
||||
@@ -14,6 +14,7 @@ export async function trackProjectCreation(
|
||||
flushInterval: 0,
|
||||
privacyMode: true,
|
||||
disableGeoip: true,
|
||||
disabled: process.env.MODE !== "prod",
|
||||
});
|
||||
|
||||
try {
|
||||
|
||||
@@ -9,4 +9,9 @@ export default defineConfig({
|
||||
outputOptions: {
|
||||
banner: "#!/usr/bin/env node",
|
||||
},
|
||||
env: {
|
||||
POSTHOG_API_KEY: "phc_8ZUxEwwfKMajJLvxz1daGd931dYbQrwKNficBmsdIrs",
|
||||
POSTHOG_HOST: "https://us.i.posthog.com",
|
||||
MODE: process.env.MODE || "dev",
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user