next-type-safe-routes icon indicating copy to clipboard operation
next-type-safe-routes copied to clipboard

Allow generated file path to be configurable

Open airtonix opened this issue 3 years ago • 1 comments

fixes #32 make destination configurable.

be warned, this is a really rough first pass at this.

// next.config.js

import withTypeSafeRoutes from 'next-type-safe-routes/plugin';

withTypeSafeRoutes({
  nextTypeSafeRoutes: {
    destination: '__generated__/next-type-safe-routes/',
  } 
});

airtonix avatar Jan 25 '22 23:01 airtonix

i wanted to push to your branch but i didn't have privileges so just opened up my fixes in another branch.

osdiab avatar Jan 28 '22 04:01 osdiab