Skip to content

Commit cb6292a

Browse files
committed
fix: throw the error
1 parent 29d8c98 commit cb6292a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/logs/src/boot/preStartLogs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function createPreStartStrategy(
4444
const trackingConsentStateSubscription = trackingConsentState.observable.subscribe(tryStartLogs)
4545

4646
function tryStartLogs() {
47-
if (isNodeEnvironment || !cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
47+
if (!cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
4848
return
4949
}
5050

test/apps/vanilla/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"build": "webpack --config ./webpack.web.js",
66
"compat:tsc": "tsc -p tsconfig.json",
7-
"compat:ssr": "webpack --config ./webpack.ssr.js && node dist/app.js"
7+
"compat:ssr": "webpack --config ./webpack.ssr.js && output=$(node dist/app.js 2>&1) && [ -z \"$output\" ] || (echo \"Node output detected: $output\" && exit 1)"
88
},
99
"dependencies": {
1010
"@datadog/browser-logs": "file:../../../packages/logs/package.tgz",

0 commit comments

Comments
 (0)