create-better-t-stack 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-DaKmcEvQ.js → src-8ESSxD4Y.js} +2 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -4808,7 +4808,7 @@ ${hasWeb ? "# npx convex env set SITE_URL http://localhost:3001\n" : ""}
|
|
|
4808
4808
|
databaseUrl = "mongodb://localhost:27017/mydatabase";
|
|
4809
4809
|
break;
|
|
4810
4810
|
case "sqlite":
|
|
4811
|
-
if (config.runtime === "workers") databaseUrl = "http://127.0.0.1:8080";
|
|
4811
|
+
if (config.runtime === "workers" || webDeploy === "wrangler" || serverDeploy === "wrangler" || webDeploy === "alchemy" || serverDeploy === "alchemy") databaseUrl = "http://127.0.0.1:8080";
|
|
4812
4812
|
else {
|
|
4813
4813
|
const dbAppDir = backend === "self" ? "apps/web" : "apps/server";
|
|
4814
4814
|
databaseUrl = `file:${path.join(config.projectDir, dbAppDir, "local.db")}`;
|
|
@@ -6548,6 +6548,7 @@ async function displayPostInstallInstructions(config) {
|
|
|
6548
6548
|
let output = `${pc.bold("Next steps")}\n${pc.cyan("1.")} ${cdCmd}\n`;
|
|
6549
6549
|
let stepCounter = 2;
|
|
6550
6550
|
if (!depsInstalled) output += `${pc.cyan(`${stepCounter++}.`)} ${packageManager} install\n`;
|
|
6551
|
+
if (database === "sqlite" && dbSetup === "none" && (serverDeploy === "wrangler" || serverDeploy === "alchemy" || webDeploy === "wrangler" || webDeploy === "alchemy")) output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} db:local\n${pc.dim(" (starts local SQLite server for Workers compatibility)")}\n`;
|
|
6551
6552
|
if (isConvex) {
|
|
6552
6553
|
output += `${pc.cyan(`${stepCounter++}.`)} ${runCmd} dev:setup\n${pc.dim(" (this will guide you through Convex project setup)")}\n`;
|
|
6553
6554
|
output += `${pc.cyan(`${stepCounter++}.`)} Copy environment variables from\n${pc.white(" packages/backend/.env.local")} to ${pc.white("apps/*/.env")}\n`;
|
|
@@ -6640,10 +6641,6 @@ async function getDatabaseInstructions(database, orm, runCmd, runtime, dbSetup,
|
|
|
6640
6641
|
if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
|
|
6641
6642
|
if (dbSetup !== "d1") instructions.push(`${pc.cyan("•")} Apply schema: ${`${runCmd} db:push`}`);
|
|
6642
6643
|
if (!(dbSetup === "d1" && serverDeploy === "alchemy")) instructions.push(`${pc.cyan("•")} Database UI: ${`${runCmd} db:studio`}`);
|
|
6643
|
-
if (database === "sqlite" && dbSetup !== "d1") {
|
|
6644
|
-
const dbLocalPath = backend === "self" ? "apps/web" : "apps/server";
|
|
6645
|
-
instructions.push(`${pc.cyan("•")} Start local DB (if needed): ${`cd ${dbLocalPath} && ${runCmd} db:local`}`);
|
|
6646
|
-
}
|
|
6647
6644
|
} else if (orm === "mongoose") {
|
|
6648
6645
|
if (dbSetup === "docker") instructions.push(`${pc.cyan("•")} Start docker container: ${`${runCmd} db:start`}`);
|
|
6649
6646
|
} else if (orm === "none") instructions.push(`${pc.yellow("NOTE:")} Manual database schema setup\n required.`);
|
package/package.json
CHANGED