From a26d9377349e2f394d239ce4c264277ad40daaee Mon Sep 17 00:00:00 2001 From: Miljan Date: Tue, 27 Feb 2024 18:42:55 +0100 Subject: [PATCH] :recycle: change web and docs url --- README.md | 4 ++-- apps/web/README.md | 4 ++-- apps/web/config/site.ts | 2 +- packages/cli/README.md | 4 ++-- packages/cli/src/commands/add/installers/nextauth.ts | 7 ++----- packages/cli/src/commands/add/installers/trpc.ts | 3 ++- packages/cli/src/commands/add/installers/uploadthing.ts | 3 ++- packages/cli/src/constants.ts | 1 + packages/cli/template/base/README.md | 8 ++++---- packages/cli/template/base/app/page.tsx | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index cdf49f6..f3ec8be 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@

- Get started with the Next Kickstart by running npx next-kickstart + Get started with the Next Kickstart by running npx next-kickstart

@@ -76,7 +76,7 @@ pnpm dlx next-kickstart ``` For more advanced usage, check out the -[docs](https://docs.kickstart.miljan.xyz). +[docs](https://kickstart-docs.vercel.app/). [downloads-image]: https://img.shields.io/npm/dm/next-kickstart?color=364fc7&logoColor=364fc7 diff --git a/apps/web/README.md b/apps/web/README.md index ac22251..54582d4 100644 --- a/apps/web/README.md +++ b/apps/web/README.md @@ -17,7 +17,7 @@

- Get started with the Next Kickstart by running npx next-kickstart + Get started with the Next Kickstart by running npx next-kickstart

@@ -76,7 +76,7 @@ pnpm dlx next-kickstart ``` For more advanced usage, check out the -[docs](https://docs.kickstart.miljan.xyz). +[docs](https://kickstart-docs.vercel.app/). [downloads-image]: https://img.shields.io/npm/dm/next-kickstart?color=364fc7&logoColor=364fc7 diff --git a/apps/web/config/site.ts b/apps/web/config/site.ts index 2334607..9398052 100644 --- a/apps/web/config/site.ts +++ b/apps/web/config/site.ts @@ -3,7 +3,7 @@ export const siteConfig = { description: "All-in-one toolkit for full-stack, typesafe applications", links: { github: "https://github.com/miljan-code/next-kickstart", - docs: "https://docs.kickstart.miljan.xyz", + docs: "https://kickstart-docs.vercel.app/", }, }; diff --git a/packages/cli/README.md b/packages/cli/README.md index 68c1066..4dee63e 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -16,7 +16,7 @@

- Get started with the Next Kickstart by running npx next-kickstart + Get started with the Next Kickstart by running npx next-kickstart

@@ -75,7 +75,7 @@ pnpm dlx next-kickstart ``` For more advanced usage, check out the -[docs](https://docs.kickstart.miljan.xyz). +[docs](https://kickstart-docs.vercel.app/). [downloads-image]: https://img.shields.io/npm/dm/next-kickstart?color=364fc7&logoColor=364fc7 diff --git a/packages/cli/src/commands/add/installers/nextauth.ts b/packages/cli/src/commands/add/installers/nextauth.ts index 3613ae7..24a5db2 100644 --- a/packages/cli/src/commands/add/installers/nextauth.ts +++ b/packages/cli/src/commands/add/installers/nextauth.ts @@ -10,6 +10,7 @@ import { depInstaller } from "../helpers/dep-installer.js"; import { updateKickstartConfig } from "@/commands/common/update-kickstart-config.js"; import { confirmPrompt, overwritePrompt } from "@/commands/common/prompts.js"; import { logger } from "@/utils/logger.js"; +import { DOCS_URL } from "@/constants.js"; import { type InstallPackagesOpts } from "@/commands/init/helpers/install-packages.js"; import { type Dependency } from "@/commands/common/dependencies.js"; @@ -61,9 +62,5 @@ export const nextauthInstaller = async ({ // Next steps logger.info("\nNext steps:"); logger.info(` - Add Next-Auth environment variables to .env file`); - logger.info( - ` Find more here: ${chalk.white( - "https://docs.kickstart.miljan.xyz", - )} (ctrl+click)`, - ); + logger.info(` Find more here: ${chalk.white(DOCS_URL)}`); }; diff --git a/packages/cli/src/commands/add/installers/trpc.ts b/packages/cli/src/commands/add/installers/trpc.ts index 3b39162..2c1ace9 100644 --- a/packages/cli/src/commands/add/installers/trpc.ts +++ b/packages/cli/src/commands/add/installers/trpc.ts @@ -5,6 +5,7 @@ import { fsTRPC } from "@/commands/common/fs-helpers.js"; import { depInstaller } from "../helpers/dep-installer.js"; import { updateKickstartConfig } from "@/commands/common/update-kickstart-config.js"; import { logger } from "@/utils/logger.js"; +import { DOCS_URL } from "@/constants.js"; import { type InstallPackagesOpts } from "@/commands/init/helpers/install-packages.js"; export const trpcInstaller = async ({ @@ -37,5 +38,5 @@ export const trpcInstaller = async ({ // Next steps logger.info("Find out more about tRPC:"); - logger.info(` ${chalk.white("https://docs.kickstart.miljan.xyz")}`); + logger.info(` ${chalk.white(DOCS_URL)}`); }; diff --git a/packages/cli/src/commands/add/installers/uploadthing.ts b/packages/cli/src/commands/add/installers/uploadthing.ts index f02813d..466f00c 100644 --- a/packages/cli/src/commands/add/installers/uploadthing.ts +++ b/packages/cli/src/commands/add/installers/uploadthing.ts @@ -6,6 +6,7 @@ import { depInstaller } from "../helpers/dep-installer.js"; import { logger } from "@/utils/logger.js"; import { fsUploadthing } from "@/commands/common/fs-helpers.js"; import { updateKickstartConfig } from "@/commands/common/update-kickstart-config.js"; +import { DOCS_URL } from "@/constants.js"; export const uploadthingInstaller = async ({ packages, @@ -29,5 +30,5 @@ export const uploadthingInstaller = async ({ // Next steps logger.info("Find out more about Uploadthing:"); - logger.info(` ${chalk.white("https://docs.kickstart.miljan.xyz")}`); + logger.info(` ${chalk.white(DOCS_URL)}`); }; diff --git a/packages/cli/src/constants.ts b/packages/cli/src/constants.ts index b96e53d..f32805c 100644 --- a/packages/cli/src/constants.ts +++ b/packages/cli/src/constants.ts @@ -4,6 +4,7 @@ import { fileURLToPath } from "node:url"; const __filename = fileURLToPath(import.meta.url); export const PKG_ROOT = path.join(path.dirname(__filename), "../"); export const DEFAULT_APP_NAME = "next-kickstart"; +export const DOCS_URL = "https://kickstart-docs.vercel.app"; export const TITLE_TEXT = ` _ ___ _ _ _ | | / (_) | | | | | | | |/ / _ ___| | _____| |_ __ _ _ __| |_ diff --git a/packages/cli/template/base/README.md b/packages/cli/template/base/README.md index cdf49f6..54582d4 100644 --- a/packages/cli/template/base/README.md +++ b/packages/cli/template/base/README.md @@ -17,7 +17,7 @@

- Get started with the Next Kickstart by running npx next-kickstart + Get started with the Next Kickstart by running npx next-kickstart

@@ -40,8 +40,8 @@

Next Kickstart

-Next-Kickstart is an opinionated NextJS 13 (App Router) CLI toolkit -that contains everything you need for developing a full-stack applications. +Next-Kickstart is an opinionated NextJS 13 (App Router) CLI toolkit that +contains everything you need for developing a full-stack applications. It includes: @@ -76,7 +76,7 @@ pnpm dlx next-kickstart ``` For more advanced usage, check out the -[docs](https://docs.kickstart.miljan.xyz). +[docs](https://kickstart-docs.vercel.app/). [downloads-image]: https://img.shields.io/npm/dm/next-kickstart?color=364fc7&logoColor=364fc7 diff --git a/packages/cli/template/base/app/page.tsx b/packages/cli/template/base/app/page.tsx index 6e5dd80..fad2ef2 100644 --- a/packages/cli/template/base/app/page.tsx +++ b/packages/cli/template/base/app/page.tsx @@ -10,7 +10,7 @@ export default function Home() {

First Steps →

@@ -21,7 +21,7 @@ export default function Home() {

Documentation →