Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🚧 404 when locale isn’t supported
Luke Vella9a1b14e4ae7a
diff --git a/apps/web/src/app/[locale]/layout.tsx b/apps/web/src/app/[locale]/layout.tsxindex c0931c070..e66e55436 100644--- a/apps/web/src/app/[locale]/layout.tsx+++ b/apps/web/src/app/[locale]/layout.tsx@@ -1,11 +1,13 @@import "./globals.css";+import { supportedLngs } from "@rallly/languages";import { PostHogProvider } from "@rallly/posthog/client";import { Toaster } from "@rallly/ui/sonner";import { TooltipProvider } from "@rallly/ui/tooltip";import { domAnimation, LazyMotion } from "motion/react";import type { Metadata, Viewport } from "next";import { Inter } from "next/font/google";+import { notFound } from "next/navigation";import type React from "react";import { TimeZoneChangeDetector } from "@/app/[locale]/timezone-change-detector";import type { Params } from "@/app/[locale]/types";@@ -79,6 +81,11 @@ export default async function Root({params: Promise<Params>;}) {const { locale } = await params;++ if (!supportedLngs.includes(locale)) {+ notFound();+ }+const { user, brandingConfig, resources } = await loadData(locale);const brandingStyles = {