Skip to content

v0.0.18

Compare
Choose a tag to compare
@tatethurston tatethurston released this 13 Jul 23:13
· 117 commits to main since this release
83f52d2

What's Changed

  • query is now typed as string | string[] | undefined instead of string | undefined by @sachinraja.

  • nextjs-routes can now be configured via your next.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) and withRoutes will no-op in production.

Full Changelog: v0.0.17...v0.0.18