We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a37380 commit e770aaaCopy full SHA for e770aaa
packages/nestjs-endpoints/src/helpers.ts
@@ -17,9 +17,12 @@ const shortCircuitDirs: Record<string, boolean> = {
17
[process.cwd()]: true,
18
};
19
export function getEndpointHttpPath(_callsites: callsites.CallSite[]) {
20
- if (settings.rootDirectory) {
21
- shortCircuitDirs[settings.rootDirectory] = true;
+ if (!settings.rootDirectory) {
+ throw new Error(
22
+ 'nestjs-endpoints root directory not set. Did you configure EndpointsRouterModule?',
23
+ );
24
}
25
+ shortCircuitDirs[settings.rootDirectory] = true;
26
const file = _callsites
27
.map((callsite) => {
28
const fileName = callsite.getFileName();
0 commit comments