mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-10 23:48:26 +00:00
bump: new version 0.1.20
This commit is contained in:
parent
b0c3bd1b2d
commit
ea27ba2d8e
@ -1,4 +1,4 @@
|
||||
VERSION=0.1.19
|
||||
VERSION=0.1.20
|
||||
|
||||
# Nest run in docker, change host to database container name
|
||||
DB_HOST=localhost
|
||||
|
||||
@ -4,7 +4,11 @@ import { useEffect, useRef } from "react";
|
||||
|
||||
import { useOptionalUser, useUserChanged } from "./useUser";
|
||||
|
||||
export const usePostHog = (apiKey?: string, logging = false, debug = false): void => {
|
||||
export const usePostHog = (
|
||||
apiKey?: string,
|
||||
logging = false,
|
||||
debug = false,
|
||||
): void => {
|
||||
const postHogInitialized = useRef(false);
|
||||
const location = useLocation();
|
||||
const user = useOptionalUser();
|
||||
@ -15,7 +19,7 @@ export const usePostHog = (apiKey?: string, logging = false, debug = false): voi
|
||||
if (postHogInitialized.current === true) return;
|
||||
if (logging) console.log("Initializing PostHog");
|
||||
posthog.init(apiKey, {
|
||||
api_host: "https://eu.posthog.com",
|
||||
api_host: "https://us.i.posthog.com",
|
||||
opt_in_site_apps: true,
|
||||
debug,
|
||||
loaded: function (posthog) {
|
||||
|
||||
@ -34,6 +34,8 @@ export default defineConfig({
|
||||
"tailwindcss",
|
||||
"@tiptap/react",
|
||||
"react-tweet",
|
||||
"posthog-js",
|
||||
"posthog-js/react",
|
||||
],
|
||||
external: ["@prisma/client"],
|
||||
},
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
VERSION=0.1.19
|
||||
VERSION=0.1.20
|
||||
|
||||
# Nest run in docker, change host to database container name
|
||||
DB_HOST=postgres
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "core",
|
||||
"private": true,
|
||||
"version": "0.1.19",
|
||||
"version": "0.1.20",
|
||||
"workspaces": [
|
||||
"apps/*",
|
||||
"packages/*"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user