Skip to content

Commit 1f7b02c

Browse files
committed
fix(nx-ktor): fix url to generate the project
1 parent 4aca42c commit 1f7b02c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

packages/nx-ktor/src/utils/ktor-utils.ts

+11-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ const getBuilder = (cwd: string) => {
2626
);
2727
};
2828

29-
export const DEFAULT_KTOR_INITIALIZR_URL =
30-
'https://start-ktor-io.labs.jb.gg'; //'https://start.ktor.io';
29+
export const DEFAULT_KTOR_INITIALIZR_URL = 'https://start.ktor.io';
3130

3231
export interface KtorFeature {
3332
name: string;
@@ -42,7 +41,12 @@ export function runKtorPluginCommand(
4241
ignoreWrapper?: boolean;
4342
useLegacyWrapper?: boolean;
4443
runFromParentModule?: boolean;
45-
} = { cwd: process.cwd(), ignoreWrapper: false, useLegacyWrapper: true, runFromParentModule: false }
44+
} = {
45+
cwd: process.cwd(),
46+
ignoreWrapper: false,
47+
useLegacyWrapper: true,
48+
runFromParentModule: false,
49+
}
4650
): { success: boolean } {
4751
//force use legacy wrapper for all executors
4852
options = { ...options, useLegacyWrapper: true };
@@ -72,7 +76,10 @@ export function buildKtorDownloadUrl(options: NormalizedSchema) {
7276
}
7377

7478
export function isKtorProject(project: ProjectConfiguration): boolean {
75-
if(hasMultiModuleMavenProject(project.root) || hasMultiModuleGradleProject(project.root))
79+
if (
80+
hasMultiModuleMavenProject(project.root) ||
81+
hasMultiModuleGradleProject(project.root)
82+
)
7683
return true;
7784

7885
if (isMavenProject(project)) {

0 commit comments

Comments
 (0)