Made the CLI error more helpful if you’re not running your Next.js app
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/cli": patch
|
||||
---
|
||||
|
||||
Made the CLI error more helpful if you’re not running your Next.js app
|
||||
@@ -84,7 +84,9 @@ export async function devCommand(path: string, anyOptions: any) {
|
||||
},
|
||||
});
|
||||
} catch (err) {
|
||||
logger.error(`❌ [trigger.dev] No server found on port ${options.port}.`);
|
||||
logger.error(
|
||||
`❌ [trigger.dev] No server found on port ${options.port}. Make sure your Next.js app is running and try again.`
|
||||
);
|
||||
telemetryClient.dev.failed("no_server_found", options);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user