0670d8b283
The version spec for [convex](https://www.npmjs.com/package/convex) in the convex example was `latest`, which meant developers who created a project with this example during the period of time between a new convex release with non-back compatible changes and an update to the demo in this repo would have broken projects. For less stress all around, let's pin the version here! ## Documentation / Examples - [x] Make sure the linting passes by running `pnpm build && pnpm lint` - [x] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) |
||
---|---|---|
.. | ||
convex | ||
pages | ||
public | ||
styles | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Convex
This example demonstrates the Convex global state management framework.
Deploy your own
Deploy the example using Vercel:
How to use
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example convex convex-app
# or
yarn create next-app --example convex convex-app
# or
pnpm create next-app --example convex convex-app
Run
npm run dev
to run next dev
and a Convex file watcher at the same time. This command will log you into Convex, so you'll need to create a Convex account if this is your first project.
Once everything is working, commit your code and deploy it to the cloud with Vercel (Documentation).
Use npx convex deploy && npm run build
as the build command and set the CONVEX_DEPLOY_KEY
environmental variable in Vercel (Documentation).