🧑💻 Allow for custom 404 system messages
This commit is contained in:
@@ -312,3 +312,12 @@ The related environment variables are listed here but you are probably not inter
|
||||
| NEXT_PUBLIC_POSTHOG_HOST | https://app.posthog.com | PostHog API Host |
|
||||
|
||||
</Accordion>
|
||||
|
||||
<Accordion title="System labels">
|
||||
|
||||
| Parameter | Default | Description |
|
||||
| ------------------------------- | ---------------------------------------- | ----------- |
|
||||
| NEXT_PUBLIC_VIEWER_404_TITLE | 404 | |
|
||||
| NEXT_PUBLIC_VIEWER_404_SUBTITLE | The bot you're looking for doesn't exist | |
|
||||
|
||||
</Accordion>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { env } from '@typebot.io/env'
|
||||
|
||||
export const NotFoundPage = () => (
|
||||
<div
|
||||
style={{
|
||||
@@ -8,7 +10,9 @@ export const NotFoundPage = () => (
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
>
|
||||
<h1 style={{ fontWeight: 'bold', fontSize: '30px' }}>404</h1>
|
||||
<h2>The bot you're looking for doesn't exist</h2>
|
||||
<h1 style={{ fontWeight: 'bold', fontSize: '30px' }}>
|
||||
{env.NEXT_PUBLIC_VIEWER_404_TITLE}
|
||||
</h1>
|
||||
<h2>{env.NEXT_PUBLIC_VIEWER_404_SUBTITLE}</h2>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user