import { Suspense } from "react"; import type { BlitzPage } from "blitz"; import { Link, useMutation, Routes } from "blitz"; import BaseLayout from "../core/layouts/base-layout"; import logout from "../auth/mutations/logout"; import useCurrentCustomer from "../core/hooks/use-current-customer"; /* * This file is just for a pleasant getting started page for your new app. * You can delete everything in here and start from scratch if you like. */ const UserInfo = () => { const { customer } = useCurrentCustomer(); const [logoutMutation] = useMutation(logout); if (customer) { return ( <>
User id: {customer.id}
User role: {customer.encryptionKey}
); } else { return ( <> Sign Up Login ); } }; const Home: BlitzPage = () => { return (
blitz.js

Congrats! Your app is ready, including user sign-up and log-in.

To add a new model to your app,
run the following in your terminal:

					blitz generate all project name:string
				
(And select Yes to run prisma migrate)

Then restart the server

						Ctrl + c
					
						blitz dev
					

and go to{" "} /projects

Documentation Github Repo Discord Community
); }; Home.suppressFirstRenderFlicker = true; Home.getLayout = (page) => {page}; export default Home;