⚡️ The Missing Fullstack Toolkit for Next.js
role
to authenticate
property of BlitzPage
to authenticate page with respect to the role of the user. String
value or Array
of strings can be passed to authorize users.role
to authenticate
property of BlitzPage
to authenticate page with respect to the role of the user. String
value or Array
of strings can be passed to authorize users.config
object that has the httpMethod
property.
from query
files.tslog
to the latest versionconfig
object that has the httpMethod
property.
from query
files.cannot find module db error
in JavaScript template. Replace requiring the config using esbuild
with parsing using jscodeshift
to get the cliConfig
values. Added logic to find the blitz-server
file in src
directorysrc
directory in blitz consoletslog
to the latest versioncannot find module db error
in JavaScript template. Replace requiring the config using esbuild
with parsing using jscodeshift
to get the cliConfig
values. Added logic to find the blitz-server
file in src
directoryblitz install
command getting stuck on the Generating file diff...
stepes6
target config to the esbuild
configas number
assertions from new app templatesresetPassword
mutationblitz install
not working due to missing blitz/installer
dependencyblitz generate
command. Extend the generate
command with custom-templates
to provide an easy starting point for users to customize the default templates: blitz generate custom-templates
blitz generate
command. Extend the generate
command with custom-templates
to provide an easy starting point for users to customize the default templates: blitz generate custom-templates
blitz --help
CLI command not being foundblitz routes
CLI command back to the toolkitblitz export
CLI command to the toolkit blitz console
CLI command back to the toolkitinvokeWithMiddleware
so the query or mutation is called directly when running the codemodblitz.config.(ts|js)
config file when running the codemod.prisma-ast
dependency to prevent Blitz generator from failing when Prisma keywords are used as model namesno-floating-promises
lint errors after generating pages with Blitz generator by adding await
to router.push
calls in the templatespackage.json
instead of assuming it's db/schema.prisma
useCurrentUser
hook from core/hooks
to users/hooks
folderviews
property from Session.PublicData
in types.ts
filegetInitialProps
) on the App componentresolverName()
insetad of /resolverName()
AuthenticatedSessionContext
to the upgrade-legacy
codemod import mapnext.config.js
(a JavaScript file) in the upgrade-legacy
codemod.Update imports
step — import getAntiCSRFToken
and AuthenticatedMiddlewareCtx
from correct locations-cookie-prefix
appended to the cookiePrefix
config property in the new app template. It will also fix auth and CSRF issues for users upgrading from a legacy framework.Minified react error #419
in productionNextApiRequest
. Now we're using correct values provided as replaceIdentifiers
function argument.db7233db: Bump react, react-dom, @types/react and next versions
This fixes a console warning: Warning: Received
truefor a non-boolean attribute
global.
when using styled-jsx
. Versions bump also fixes React Hydration error that happens on and off when using redirectAuthenticatedTo
.
0936cb38: Patch Next.js Suspense issue in all node environments. Previously we only patched it in the development
environment, but now we make sure it gets patched in the production
env (with the blitz build
command) as well.
3f9fe8f0: Exit the CLI process after blitz new
command is finished
db7233db: Bump react, react-dom, @types/react and next versions
a3b5fdd0: Change ES6 import for withBlitz
during the codemod to the require syntax.
ebfb562b: Add Script
as a default import from next.js during the codemod.
db7233db: Bump react, react-dom, @types/react and next versions
eb971568: Add BlitzPage
types to auth pages in new app template
8ada2c26: Include ResetPasswordPage in new app template