Skip to content

Commit

Permalink
fix: cypress test for hydration exception (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhart1o1 authored Jul 12, 2024
1 parent 36fabd9 commit 27c5247
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/customer-portal/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<head>
<PublicEnvScript />
</head>
{process.env.NODE_ENV === "development" ||
process.env.RUNNING_IN_CI === "true" ? null : (
<head>
<PublicEnvScript />
</head>
)}
<body className={inter.className}>
<NavBar />
{children}
Expand Down
4 changes: 4 additions & 0 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,18 @@ local_resource(
if is_ci:
customer_portal_cmd = "cd ../apps/customer-portal && pnpm install && pnpm build"
customer_portal_serve_cmd = "cd ../apps/customer-portal && pnpm start"
customer_portal_env = {"RUNNING_IN_CI" : "true"}
else:
customer_portal_cmd = "cd ../apps/customer-portal && pnpm install"
customer_portal_serve_cmd = "cd ../apps/customer-portal && pnpm run dev"
customer_portal_env = {}
local_resource(
"customer-portal",
labels=["apps"],
cmd=customer_portal_cmd,
serve_cmd=customer_portal_serve_cmd,
env=customer_portal_env,
serve_env=customer_portal_env,
allow_parallel=True,
resource_deps=[
"core",
Expand Down

0 comments on commit 27c5247

Please sign in to comment.