-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathexample.config.ts
More file actions
39 lines (39 loc) · 1.31 KB
/
example.config.ts
File metadata and controls
39 lines (39 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export default {
// The Managed Components to load, with their settings and permissions
components: [
{
name: 'demo',
settings: { ecommerce: true },
permissions: [
'access_client_kv',
'provide_server_functionality',
'provide_widget',
'serve_static_files',
'client_network_requests',
],
},
{
name: 'custom-html', // adds an option to add custom HTML to the site. Run `webcm.track("event", { htmlCode: '<h1>Hello, world</h1>' })` in the browser console to see it in action
settings: {},
permissions: ['execute_unsafe_scripts'],
},
{
name: 'google-analytics-4',
tid: 'XXX-XXXX', // Measurement ID
hideOriginalIP: true,
ecommerce: false,
baseDomain: 'localhost',
permissions: ['access_client_kv'],
},
],
// The target server URL to proxy. If unset, webcm will spin up a simple static website and target it instead
// target: 'http://127.0.0.1:8000',
// The hostname to which WebCM should bind
hostname: 'localhost',
// The tracking URL will get all POST requests coming from `webcm.track`
trackPath: '/webcm/track',
// The port WebCM should listen to
port: 1337,
// Optional: hash key to make sure cookies set by WebCM aren't tampered with
cookiesKey: 'something-very-secret',
}