mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-29 09:50:10 -06:00
21 lines
606 B
TypeScript
21 lines
606 B
TypeScript
import type { AppProps } from "next/app";
|
|
import Head from "next/head";
|
|
import "../globals.css";
|
|
|
|
export default function App({ Component, pageProps }: AppProps): React.JSX.Element {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>Demo App</title>
|
|
</Head>
|
|
{(!process.env.NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID ||
|
|
!process.env.NEXT_PUBLIC_FORMBRICKS_API_HOST) && (
|
|
<div className="w-full bg-red-500 p-3 text-center text-sm text-white">
|
|
Please set Formbricks environment variables in apps/demo/.env
|
|
</div>
|
|
)}
|
|
<Component {...pageProps} />
|
|
</>
|
|
);
|
|
}
|