Skip to content

Commit

Permalink
fix: Don't show planetscale serverless warning if not installing driv…
Browse files Browse the repository at this point in the history
…er (t3-oss#1777)

Co-authored-by: Julius Marminge <[email protected]>
  • Loading branch information
limegorilla and juliusmarminge committed Feb 25, 2024
1 parent 01badfb commit 640a0e0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-stingrays-hammer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": minor
---

Warning about planetscale's serverless driver now only shown if using mySQL
7 changes: 6 additions & 1 deletion cli/src/helpers/logNextSteps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ export const logNextSteps = async ({

if (packages?.drizzle.inUse) {
logger.warn(
`\nThank you for trying out the new Drizzle option. If you encounter any issues, please open an issue!`,
`\nThank you for trying out the new Drizzle option. If you encounter any issues, please open an issue!`
);
}

if (databaseProvider === "planetscale") {
logger.warn(
`\nNote: We use the PlanetScale driver so that you can query your data in edge runtimes. If you want to use a different driver, you'll need to change it yourself.`
);
}
Expand Down

0 comments on commit 640a0e0

Please sign in to comment.