This is repo is based off of the Next.js typescript template and the Next.js Typescript with SSR example. It is designed to be run with Lando (a tool to give Docker Compose superpowers), but you can run this without that, and just use Docker Compose.
pnpm is used, since it's faster and more strict about dependency linking.
Code linting is enforced and opinionated, mostly to reduce polluted PR diffs.
Required:
Start up the container with:
lando start
Then, to begin development, run:
lando dev
Some tooling is built-in:
-
Upgrade dependencies
lando update-deps
This will use
npm-check-updates
to get the latest versions of the project's deps, then will install them. -
Clean out the project
lando cleanup
Removes the
.next
,.pnpm-store
,cache
, andnode_modules
directories from the project root. It's generally a good idea rebuild your containers after this. -
Linting
lando lint
This will run
prettier --write
on thepages
, andserver
directories