Skip to content

Commit

Permalink
feat: show callout when scaffolding with app router (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ehrlich authored Oct 15, 2023
1 parent 972051e commit d7824e0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/light-steaks-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

show callout when scaffolding with app router
9 changes: 8 additions & 1 deletion cli/src/helpers/logNextSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import { isInsideGitRepo, isRootGitRepo } from "./git.js";
export const logNextSteps = async ({
projectName = DEFAULT_APP_NAME,
packages,
appRouter,
noInstall,
projectDir,
}: Pick<
InstallerOptions,
"projectName" | "packages" | "noInstall" | "projectDir"
"projectName" | "packages" | "noInstall" | "projectDir" | "appRouter"
>) => {
const pkgManager = getUserPkgManager();

Expand Down Expand Up @@ -46,6 +47,12 @@ export const logNextSteps = async ({
}
logger.info(` git commit -m "initial commit"`);

if (appRouter) {
logger.warn(
`\nThank you for trying out the App Router option. If you encounter any issues, please open an issue!`
);
}

if (packages?.drizzle.inUse) {
logger.warn(
`\nThank you for trying out the new Drizzle option. If you encounter any issues, please open an issue!`,
Expand Down
1 change: 1 addition & 0 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const main = async () => {
await logNextSteps({
projectName: appDir,
packages: usePackages,
appRouter,
noInstall,
projectDir,
});
Expand Down

1 comment on commit d7824e0

@vercel
Copy link

@vercel vercel bot commented on d7824e0 Oct 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

t3-upgrade – ./upgrade

t3-upgrade-git-next-t3-oss.vercel.app
t3-upgrade-t3-oss.vercel.app
t3-upgrade.vercel.app

Please sign in to comment.