File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ " dopeshot-app " : patch
3+ ---
4+
5+ Hide the playground route outside development builds
Original file line number Diff line number Diff line change 1+ import { notFound } from "next/navigation" ;
12import { PlaygroundPage } from "@/app/(playground)/_components/playground-page" ;
23import { verifySession } from "@/lib/auth/session" ;
34import { getUserDb } from "@/lib/data/dal" ;
45import { getUserTier } from "@/lib/tier" ;
56import { isBrandPersonality } from "@/lib/types/brand" ;
67
8+ const isPlaygroundEnabled = process . env . NODE_ENV !== "production" ;
9+
710const BRAND_ONBOARDING_STEP = "brand_profile" ;
811
912function looksCompleteFromProfile ( profile : {
@@ -22,6 +25,10 @@ function looksCompleteFromProfile(profile: {
2225}
2326
2427export default async function Page ( ) {
28+ if ( ! isPlaygroundEnabled ) {
29+ notFound ( ) ;
30+ }
31+
2532 const session = await verifySession ( ) ;
2633
2734 if ( session . isAuth && session . userId ) {
You can’t perform that action at this time.
0 commit comments