v0.0.18
What's Changed
-
query
is now typed asstring | string[] | undefined
instead ofstring | undefined
by @sachinraja. -
nextjs-routes
can now be configured via yournext.config.js
to automatically regenerate types whenever your routes change:// next.config.js /** @type {import('next').NextConfig} */ const { withRoutes } = require("nextjs-routes/next-config.cjs"); const nextConfig = { reactStrictMode: true, }; module.exports = withRoutes(nextConfig);
This wiring will only run in Next.js' development server (eg
npx next dev
) andwithRoutes
will no-op in production.
Full Changelog: v0.0.17...v0.0.18