diff --git a/storage/framework/core/buddy/src/commands/cloud.ts b/storage/framework/core/buddy/src/commands/cloud.ts index b6ebc73df2..afb12c3ff3 100644 --- a/storage/framework/core/buddy/src/commands/cloud.ts +++ b/storage/framework/core/buddy/src/commands/cloud.ts @@ -102,6 +102,7 @@ export function cloud(buddy: CLI) { .alias('cloud:rm') .alias('undeploy') .option('--jump-box', 'Remove the jump-box', { default: false }) + // .option('--realtime-cdn-logs', 'Remove the CDN Realtime Log Stream', { default: false }) // TODO: implement this .option('-p, --project', descriptions.project, { default: false }) .option('--verbose', descriptions.verbose, { default: false }) .action(async (options: CloudCliOptions) => { @@ -185,7 +186,8 @@ export function cloud(buddy: CLI) { buddy .command('cloud:optimize-cost', descriptions.optimizeCost) - .option('--jump-box', 'Remove the jump-box', { default: true }) + .option('--jump-box', 'Remove the jump-box', { default: true }) // removes the ec2 instance + // .option('--realtime-cdn-logs', 'Remove the CDN Realtime Log Stream', { default: true }) // TODO: implement this - removes the Kinesis Data Stream .option('-p, --project', descriptions.project, { default: false }) .option('--verbose', descriptions.verbose, { default: false }) .action(async (options: CloudCliOptions) => { diff --git a/storage/framework/core/router/src/router.ts b/storage/framework/core/router/src/router.ts index 35839a3094..2e530f0a32 100644 --- a/storage/framework/core/router/src/router.ts +++ b/storage/framework/core/router/src/router.ts @@ -76,7 +76,7 @@ export class Router implements RouterInterface { public async job(path: Route['url']): Promise { if (path.includes('api/')) // TODO: once the api prefix is removed from the router/api, remove this - pascalCase(path.replace(/^api\/?|^\//, '')) + path = pascalCase(path.replace(/^api\/?|^\//, '')) // removes the potential `JobJob` suffix in case the user does not choose to use the Job suffix in their file name const jobModule = await import(p.userJobsPath(`${path}Job.ts`.replace(/JobJob/, 'Job')))