Skip to content

Commit 716a703

Browse files
committed
fix: throw the error
1 parent a7122a7 commit 716a703

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
@@ -43,7 +43,7 @@ export function createPreStartStrategy(
4343
const trackingConsentStateSubscription = trackingConsentState.observable.subscribe(tryStartLogs)
4444

4545
function tryStartLogs() {
46-
if (isNodeEnvironment || !cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
46+
if (!cachedConfiguration || !cachedInitConfiguration || !trackingConsentState.isGranted()) {
4747
return
4848
}
4949

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)