import React from 'react' import { getViewerUrl, isEmpty } from 'utils' export const ErrorPage = ({ error }: { error: Error }) => { return (
{isEmpty(getViewerUrl()) ? ( <>

NEXT_PUBLIC_VIEWER_URL is missing

Make sure to configure the viewer properly ( https://docs.typebot.io/self-hosting/configuration#viewer )

) : (

{error.message}

)}
) }