From f5364844a5dd22ef85d6bfd1a9f1e295640c1daa Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Thu, 12 Feb 2026 17:58:23 +0530 Subject: [PATCH 1/3] Add .nojekyll file --- docs/.nojekyll | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 docs/.nojekyll diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 000000000..e69de29bb From f472e9192947e28952bf47a18960489dc7bcc129 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Fri, 13 Feb 2026 17:52:47 +0530 Subject: [PATCH 2/3] Normalize quickstart type comparison and improve port assignment logic --- internal/cli/quickstarts.go | 39 ++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/internal/cli/quickstarts.go b/internal/cli/quickstarts.go index 8b68e8f19..358d0f867 100644 --- a/internal/cli/quickstarts.go +++ b/internal/cli/quickstarts.go @@ -464,9 +464,13 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() + // Normalize the type to lowercase for comparison normalizedType := strings.ToLower(inputs.Type) - if normalizedType != "vite" && normalizedType != "nextjs" { - return fmt.Errorf("unsupported quickstart type: %s (supported types: vite, nextjs)", inputs.Type) + + if inputs.Type != "" { + if normalizedType != "vite" && normalizedType != "nextjs" { + return fmt.Errorf("unsupported quickstart type: %s (supported types: vite, nextjs)", inputs.Type) + } } if err := qsType.Select(cmd, &inputs.Type, []string{"vite (React, Svelte, Vue, Vanilla JS)", "nextjs"}, nil); err != nil { @@ -485,24 +489,23 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { var appType, baseURL, envFileName string var callbacks, logoutURLs, origins, webOrigins []string - var defaultPort int - switch inputs.Type { - case "vite": + switch { + case strings.HasPrefix(normalizedType, "vite"): appType = appTypeSPA - defaultPort = 5173 + if inputs.Port == 0 { + inputs.Port = 5173 + } envFileName = ".env" - case "nextjs": + case strings.HasPrefix(normalizedType, "nextjs"): appType = appTypeRegularWeb - defaultPort = 3000 + if inputs.Port == 0 { + inputs.Port = 3000 + } envFileName = ".env.local" } - if inputs.Port == 0 { - inputs.Port = defaultPort - } - if inputs.Port < 1024 || inputs.Port > 65535 { return fmt.Errorf("invalid port number: %d (must be between 1024 and 65535)", inputs.Port) } @@ -510,7 +513,7 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { baseURL = fmt.Sprintf("http://localhost:%d", inputs.Port) // Configure URLs based on app type. - if inputs.Type == "vite" { + if strings.HasPrefix(normalizedType, "vite") { callbacks = []string{baseURL} logoutURLs = []string{baseURL} origins = []string{baseURL} @@ -541,7 +544,7 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { ClientMetadata: &metadata, } - if inputs.Type == "vite" { + if strings.HasPrefix(normalizedType, "vite") { a.AllowedOrigins = &origins a.WebOrigins = &webOrigins } @@ -561,12 +564,12 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { var envContent strings.Builder - switch inputs.Type { - case "vite": + switch { + case strings.HasPrefix(normalizedType, "vite"): envContent.WriteString(fmt.Sprintf("VITE_AUTH0_DOMAIN=%s\n", tenant.Domain)) envContent.WriteString(fmt.Sprintf("VITE_AUTH0_CLIENT_ID=%s\n", a.GetClientID())) - case "nextjs": + case strings.HasPrefix(normalizedType, "nextjs"): secret, err := generateState(32) if err != nil { return fmt.Errorf("failed to generate AUTH0_SECRET: %w", err) @@ -579,7 +582,7 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { envContent.WriteString(fmt.Sprintf("APP_BASE_URL=%s\n", baseURL)) } - message := fmt.Sprintf("Proceed to overwrite '%s' file? : ", envFileName) + message := fmt.Sprintf(" Proceed to overwrite '%s' file? : ", envFileName) if shouldCancelOverwrite(cli, cmd, envFileName, message) { cli.renderer.Warnf("Aborted creating %s file. Please create it manually using the following content:\n\n"+ "─────────────────────────────────────────────────────────────\n"+"%s"+ From 324bc362ed60cc315726e5838876e360062cbb1f Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Fri, 13 Feb 2026 21:47:23 +0530 Subject: [PATCH 3/3] Fix lint --- internal/cli/quickstarts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/quickstarts.go b/internal/cli/quickstarts.go index 358d0f867..77aa576b5 100644 --- a/internal/cli/quickstarts.go +++ b/internal/cli/quickstarts.go @@ -464,7 +464,7 @@ func setupQuickstartCmd(cli *cli) *cobra.Command { RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() - // Normalize the type to lowercase for comparison + // Normalize the type to lowercase for comparison. normalizedType := strings.ToLower(inputs.Type) if inputs.Type != "" {