Spaces:
Paused
Paused
Commit
·
9e7da04
1
Parent(s):
9f0412d
process.env.NEXT_PUBLIC_ASK_USER_TO_DUPLICATE
Browse files- ui/src/app/layout.tsx +2 -2
ui/src/app/layout.tsx
CHANGED
@@ -24,8 +24,8 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|
24 |
// Check if the AI_TOOLKIT_AUTH environment variable is set
|
25 |
const authRequired = process.env.AI_TOOLKIT_AUTH ? true : false;
|
26 |
|
27 |
-
// Check if
|
28 |
-
const askUserToDuplicate = process.env.
|
29 |
const shouldShowDuplicateModal = !!(askUserToDuplicate &&
|
30 |
['true', '1', 'yes', 'on'].includes(askUserToDuplicate.toLowerCase().trim()));
|
31 |
|
|
|
24 |
// Check if the AI_TOOLKIT_AUTH environment variable is set
|
25 |
const authRequired = process.env.AI_TOOLKIT_AUTH ? true : false;
|
26 |
|
27 |
+
// Check if NEXT_PUBLIC_ASK_USER_TO_DUPLICATE is set to a truthy value
|
28 |
+
const askUserToDuplicate = process.env.NEXT_PUBLIC_ASK_USER_TO_DUPLICATE;
|
29 |
const shouldShowDuplicateModal = !!(askUserToDuplicate &&
|
30 |
['true', '1', 'yes', 'on'].includes(askUserToDuplicate.toLowerCase().trim()));
|
31 |
|