Closed stevemu closed 1 year ago
:tada: This issue has been resolved in version 2.0.1-beta.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
thank you for the quick fix!!
:tada: This issue has been resolved in version 2.0.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
When I use 2.0.1-beta.1 on Windows, I got following error:
error stack:
I think it is due to the line https://github.com/instantcommerce/next-api-decorators/blob/beta/lib/internals/parseRequestUrl.ts#L22 here didn't consider the Windows style
directoryPath
.In Windows, directoryPath is like:
\\pages\\api\\my-api
,In Mac, directoryPath is like:
/pages/api/my-sapi
,I think
directoryPath.split('/pages')
does not work for the Windows directoryPath.I love next-api-decorators, thank you.