Skip to content

Commit 84d68e6

Browse files
authored
chore: Fix react universal example. (#517)
1 parent d2c1d64 commit 84d68e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
],
2727
"private": true,
2828
"scripts": {
29-
"clean": "yarn workspaces foreach -pt run clean",
30-
"build": "yarn workspaces foreach -p --topological-dev run build",
29+
"clean": "yarn workspaces foreach -vpt run clean",
30+
"build": "yarn workspaces foreach -vp --topological-dev run build",
3131
"//": "When using build:doc you need to specify the workspace. 'yarn run build:doc -- packages/shared/common' for example.",
3232
"build:doc": "npx typedoc --options $1/typedoc.json",
3333
"lint": "npx eslint . --ext .ts",

packages/sdk/react-universal/example/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default async function RootLayout({
2020
}: Readonly<{
2121
children: ReactNode;
2222
}>) {
23-
const clientSideID = process.env.NEXT_PUBLIC_LD_CLIENT_SIDE_ID;
23+
const clientSideID = process.env.NEXT_PUBLIC_LD_CLIENT_SIDE_ID || '';
2424

2525
// You must supply an LDContext. For example, here getLDContext
2626
// inspects cookies and defaults to anonymous.

0 commit comments

Comments
 (0)