lint
This commit is contained in:
parent
970317ef08
commit
5705fbb6a5
|
@ -181,7 +181,7 @@ export default {
|
||||||
production ? "production" : "development"
|
production ? "production" : "development"
|
||||||
),
|
),
|
||||||
"process.env.POSTHOG_TOKEN": JSON.stringify(process.env.POSTHOG_TOKEN),
|
"process.env.POSTHOG_TOKEN": JSON.stringify(process.env.POSTHOG_TOKEN),
|
||||||
"process.env.POSTHOG_URL": JSON.stringify(process.env.POSTHOG_URL)
|
"process.env.POSTHOG_URL": JSON.stringify(process.env.POSTHOG_URL),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
svelte({
|
svelte({
|
||||||
|
|
|
@ -11,7 +11,7 @@ export const initialise = async () => {
|
||||||
try {
|
try {
|
||||||
if (process.env.NODE_ENV === "production") {
|
if (process.env.NODE_ENV === "production") {
|
||||||
posthog.init(process.env.POSTHOG_TOKEN, {
|
posthog.init(process.env.POSTHOG_TOKEN, {
|
||||||
api_host: process.env.POSTHOG_URL
|
api_host: process.env.POSTHOG_URL,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
async function updateKey([key, value]) {
|
async function updateKey([key, value]) {
|
||||||
const response = await api.put(`/api/keys/${key}`, { value })
|
const response = await api.put(`/api/keys/${key}`, { value })
|
||||||
const res = await response.json()
|
const res = await response.json()
|
||||||
if (key === "budibase") posthog.identify(value);
|
if (key === "budibase") posthog.identify(value)
|
||||||
keys = { ...keys, ...res }
|
keys = { ...keys, ...res }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue