Next.js Typescript boilerplate with Hasura GraphQL backend This project extends Next.js Typescript + Firebase example This sample SSR react application with Next.js, integrating Hasura backend Typescript Boilerplate
npm install
Copy src/dotenv
to src/.env
then edit your environment
npm run dev
npm run serve
npm run deploy
npm run clean
- The empty
placeholder.html
file is so Firebase Hosting does not error on an emptypublic/
folder and still hosts at the Firebase project URL. firebase.json
outlines the catchall rewrite rule for our Cloud Function.- The Firebase predeploy hooks defined in
firebase.json
will handle linting and compiling of the next app and the functions sourceswhenfirebase deploy
is invoked. The only scripts you should need aredev
,clean
anddeploy
.