tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
566 stars 23 forks source link

npx nextjs-routes doesn't read NextConfig #151

Closed sitch closed 1 year ago

sitch commented 1 year ago

See: https://github.com/tatethurston/nextjs-routes/blob/main/src/cli.ts#L25

It should pull in the local config, like it does on the webpack hook so the i18n config gets properly typed

I've been getting weird false/positives locally since adding:

// package.json
{
  "scripts": {
    "prebuild": "npx nextjs-routes"
  }
}
tatethurston commented 1 year ago

Thanks @sitch this is a duplicate of https://github.com/tatethurston/nextjs-routes/issues/136