You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Blitz is no longer an all-in-one framework but a full-stack toolkit for Next.js 🔥
Blitz 2.0 is a modular toolkit that plugs into any new or existing Next.js app. Our goal is to provide battle-tested libraries and conventions for shipping and scaling worldwide apps.
You can read more about the pivot decision here: #3075.
Over the last few months, we've been fixing any reported issues and working on making the Blitz 2.0 stable.
Upgrade Guide
If you have an existing Blitz.js app and would like to upgrade it to the Blitz 2.0, you can use our @blitzjs/codemod package by running the following command in the root of your Blitz application:
npx @blitzjs/codemod upgrade-legacy
After running the command, your Blitz app will be upgraded to the Blitz 2.0 + Next.js setup. If you face any issues with the upgrade — let us know!
You need Node.js 16 or newer. You can verify this by running node -v in your terminal.
Install Blitz
Run yarn global add blitz or npm install -g blitz or pnpm add -g blitz.
Generate a New App
blitz new myAppName
cd myAppName
blitz dev
View your brand new Next.js + Blitz 2.0 app at http://localhost:3000/.
Blitz Packages
Blitz 2.0 consist of six packages: blitz, @blitzjs/next, @blitzjs/auth, @blitzjs/rpc, @blitzjs/codegen. Read below to learn about each of them.
blitz
blitz is our core package containing utilities and the base for all the Blitz packages and plugins. Blitz CLI is also a part of this package, including the blitz generate command for code scaffolding.
The package provides authentication and authorization. Works with any identity provider, including self-hosted username and password and third parties like Auth0.
Blitz "Zero-API" data layer (Blitz RPC) is focused on making the communication between server and client seamless. It lets you import server code directly into your components instead of having to manually add API endpoints and manually do client-side fetching and caching.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Announcing Blitz 2.0 BETA 🎉 🎉 🎉
Blitz is no longer an all-in-one framework but a full-stack toolkit for Next.js 🔥
Blitz 2.0 is a modular toolkit that plugs into any new or existing Next.js app. Our goal is to provide battle-tested libraries and conventions for shipping and scaling worldwide apps.
You can read more about the pivot decision here: #3075.
Over the last few months, we've been fixing any reported issues and working on making the Blitz 2.0 stable.
Upgrade Guide
If you have an existing Blitz.js app and would like to upgrade it to the Blitz 2.0, you can use our
@blitzjs/codemod
package by running the following command in the root of your Blitz application:After running the command, your Blitz app will be upgraded to the Blitz 2.0 + Next.js setup. If you face any issues with the upgrade — let us know!
You can also check out the manual upgrade guide.
Try Blitz 2.0 Yourself With Just a Few Commands
Set Up Your Computer
You need Node.js 16 or newer. You can verify this by running
node -v
in your terminal.Install Blitz
Run
yarn global add blitz
ornpm install -g blitz
orpnpm add -g blitz
.Generate a New App
blitz new myAppName
cd myAppName
blitz dev
View your brand new Next.js + Blitz 2.0 app at
http://localhost:3000/
.Blitz Packages
Blitz 2.0 consist of six packages:
blitz
,@blitzjs/next
,@blitzjs/auth
,@blitzjs/rpc
,@blitzjs/codegen
. Read below to learn about each of them.blitz
blitz
is our core package containing utilities and the base for all the Blitz packages and plugins. Blitz CLI is also a part of this package, including theblitz generate
command for code scaffolding.Read the Blitz CLI docs.
Read the Blitz utilities docs.
@blitzjs/next
The
@blitzjs/next
package exposes functions and components specific to the Next.js framework.Read the docs.
@blitzjs/auth
The package provides authentication and authorization. Works with any identity provider, including self-hosted username and password and third parties like Auth0.
Read the docs.
@blitzjs/rpc
Blitz "Zero-API" data layer (Blitz RPC) is focused on making the communication between server and client seamless. It lets you import server code directly into your components instead of having to manually add API endpoints and manually do client-side fetching and caching.
Read the docs.
@blitzjs/codemod
The
@blitzjs/codemod
has anupgrade-legacy
codemod for upgrading the existing Blitz framework application to the new Blitz 2.0 + Next.js setup.Read the docs.
HUGE shout out to everyone who contributed to this release:
@Zeko369 @datner @anteprimorac @iDavidB @andreasasprou @the-bayer @chaiwattsw @prisis @oltdaniel @Trancever @edrickleong @ganeshmani @orionmiz @iojcde @noxify @siddhsuresh @saadaltabari @dillonraphael @flybayer
🙌 🙌 🙌
This discussion was created from the release v2.0.0-beta.1 OFFICIAL BLITZ 2.0 BETA.
Beta Was this translation helpful? Give feedback.
All reactions