0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/cypress/fixtures/api/decide.js
Marius Andra daf1a0b7fa
feat(toolbar): rename editor to toolbar, add toast on error (#12362)
* feat(toolbar): rename editor to toolbar, add toast on error

* add missing types

* be less noisy when expired token comes a previous page load

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-11-28 22:10:00 +01:00

18 lines
442 B
JavaScript

export function decideResponse(featureFlags) {
return {
config: {
enable_collect_everything: true,
},
toolbarParams: {
toolbarVersion: 'toolbar',
jsURL: 'http://localhost:8234/',
},
isAuthenticated: true,
supportedCompression: ['gzip', 'gzip-js', 'lz64'],
featureFlags,
sessionRecording: {
endpoint: '/s/',
},
}
}