@@ -11,6 +11,8 @@ import { cn } from '@/lib/utils';
11
11
import EmbedPopupAgentClient from './embed-popup/agent-client' ;
12
12
import { ThemeToggle } from './theme-toggle' ;
13
13
14
+ const IS_LOCAL_ENVIRONMENT = process . env . VERCEL === undefined ;
15
+
14
16
export default function Welcome ( ) {
15
17
const router = useRouter ( ) ;
16
18
const pathname = usePathname ( ) ;
@@ -135,15 +137,18 @@ export default function Welcome() {
135
137
< pre className = "border-separator2 bg-bg2 overflow-auto rounded-md border px-2 py-1" >
136
138
< code className = "font-mono" > { `<script src="${ embedPopupUrl } "></script>` } </ code >
137
139
</ pre >
138
- < p className = "text-fg4 my-4 text-sm" >
139
- To apply local changes, run{ ' ' }
140
- < code className = "text-fg0" > pnpm build-embed-popup-script</ code > .< br />
141
- Test your latest build at{ ' ' }
142
- < a href = "/popup" target = "_blank" rel = "noopener noreferrer" className = "underline" >
143
- { popupTestUrl }
144
- </ a >
145
- .
146
- </ p >
140
+ { /* Dont show build/test instructions in sandbox environment */ }
141
+ { IS_LOCAL_ENVIRONMENT && (
142
+ < p className = "text-fg4 my-4 text-sm" >
143
+ To apply local changes, run{ ' ' }
144
+ < code className = "text-fg0" > pnpm build-embed-popup-script</ code > .< br />
145
+ Test your latest build at{ ' ' }
146
+ < a href = "/popup" target = "_blank" rel = "noopener noreferrer" className = "underline" >
147
+ { popupTestUrl }
148
+ </ a >
149
+ .
150
+ </ p >
151
+ ) }
147
152
</ div >
148
153
< div className = "flex justify-center pt-8" >
149
154
< div className = "text-fgAccent flex gap-1" >
0 commit comments