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