Skip to content

Commit

Permalink
fix: generated comments in env file (#1769)
Browse files Browse the repository at this point in the history
Co-authored-by: Julius Marminge <julius0216@outlook.com>
  • Loading branch information
jhamill34 and juliusmarminge committed Feb 22, 2024
1 parent 36c629a commit c944c49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/nervous-oranges-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-t3-app": patch
---

fix: generated comments in env file
4 changes: 2 additions & 2 deletions cli/src/installers/envVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ const getEnvContent = (
if (usingPrisma || usingDrizzle) {
if (databaseProvider === "planetscale") {
if (usingDrizzle) {
content += `Get the Database URL from the "prisma" dropdown selector in PlanetScale.
content += `# Get the Database URL from the "prisma" dropdown selector in PlanetScale.
# Change the query params at the end of the URL to "?ssl={"rejectUnauthorized":true}"
DATABASE_URL='mysql://YOUR_MYSQL_URL_HERE?ssl={"rejectUnauthorized":true}'`;
} else {
content = `Get the Database URL from the "prisma" dropdown selector in PlanetScale.
content = `# Get the Database URL from the "prisma" dropdown selector in PlanetScale.
DATABASE_URL='mysql://YOUR_MYSQL_URL_HERE?sslaccept=strict'`;
}
} else if (databaseProvider === "mysql") {
Expand Down

0 comments on commit c944c49

Please sign in to comment.