create-better-t-stack 3.13.0 → 3.13.1
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.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-DyVk_RBS.mjs → src-BpuxNIy_.mjs} +2 -24
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as router, i as docs, n as create, o as sponsors, r as createBtsCli, t as builder } from "./src-
|
|
2
|
+
import { a as router, i as docs, n as create, o as sponsors, r as createBtsCli, t as builder } from "./src-BpuxNIy_.mjs";
|
|
3
3
|
|
|
4
4
|
export { builder, create, createBtsCli, docs, router, sponsors };
|
|
@@ -6264,11 +6264,7 @@ ${packageManagerRunCmd} dev
|
|
|
6264
6264
|
\`\`\`
|
|
6265
6265
|
|
|
6266
6266
|
${generateRunningInstructions(frontend, backend, webPort, hasNative, isConvex)}
|
|
6267
|
-
|
|
6268
6267
|
${addons.includes("pwa") && hasReactRouter ? "\n## PWA Support with React Router v7\n\nThere is a known compatibility issue between VitePWA and React Router v7.\nSee: https://github.com/vite-pwa/vite-plugin-pwa/issues/809\n" : ""}
|
|
6269
|
-
|
|
6270
|
-
${generateWorkersRuntimeNotes(runtime)}
|
|
6271
|
-
|
|
6272
6268
|
${generateDeploymentCommands(packageManagerRunCmd, webDeploy, serverDeploy)}
|
|
6273
6269
|
|
|
6274
6270
|
## Project Structure
|
|
@@ -6510,25 +6506,6 @@ function generateScriptsList(packageManagerRunCmd, database, orm, _auth, hasNati
|
|
|
6510
6506
|
- \`cd apps/docs && ${packageManagerRunCmd} build\`: Build documentation site`;
|
|
6511
6507
|
return scripts;
|
|
6512
6508
|
}
|
|
6513
|
-
function generateWorkersRuntimeNotes(runtime) {
|
|
6514
|
-
if (runtime !== "workers") return "";
|
|
6515
|
-
return `
|
|
6516
|
-
## Before Deploying to Cloudflare
|
|
6517
|
-
|
|
6518
|
-
When you are ready to deploy your app to Cloudflare Workers, you'll have to make a couple changes.
|
|
6519
|
-
- Change your url environment variables to match your \`*.workers.dev\` domains generated by Cloudflare:
|
|
6520
|
-
|
|
6521
|
-
\`\`\`bash
|
|
6522
|
-
# apps/web/.env
|
|
6523
|
-
SERVER_URL={your-production-server-domain}
|
|
6524
|
-
|
|
6525
|
-
# apps/server/.env
|
|
6526
|
-
CORS_ORIGIN={your-production-web-domain}
|
|
6527
|
-
BETTER_AUTH_URL={your-production-server-domain}
|
|
6528
|
-
\`\`\`
|
|
6529
|
-
- In \`apps/server/src/lib/auth.ts\`, uncomment the \`session.cookieCache\` and \`advanced.crossSubDomainCookies\` sections and replace \`<your-workers-subdomain>\` with your actual workers subdomain. These settings are required to ensure cookies are transferred properly between your web and server domains.
|
|
6530
|
-
`;
|
|
6531
|
-
}
|
|
6532
6509
|
function generateDeploymentCommands(packageManagerRunCmd, webDeploy, serverDeploy) {
|
|
6533
6510
|
const lines = [];
|
|
6534
6511
|
if (webDeploy === "cloudflare" || serverDeploy === "cloudflare") {
|
|
@@ -6536,8 +6513,9 @@ function generateDeploymentCommands(packageManagerRunCmd, webDeploy, serverDeplo
|
|
|
6536
6513
|
if (webDeploy === "cloudflare" && serverDeploy !== "cloudflare") lines.push(`- Web dev: cd apps/web && ${packageManagerRunCmd} dev`, `- Web deploy: cd apps/web && ${packageManagerRunCmd} deploy`, `- Web destroy: cd apps/web && ${packageManagerRunCmd} destroy`);
|
|
6537
6514
|
if (serverDeploy === "cloudflare" && webDeploy !== "cloudflare") lines.push(`- Server dev: cd apps/server && ${packageManagerRunCmd} dev`, `- Server deploy: cd apps/server && ${packageManagerRunCmd} deploy`, `- Server destroy: cd apps/server && ${packageManagerRunCmd} destroy`);
|
|
6538
6515
|
if (webDeploy === "cloudflare" && serverDeploy === "cloudflare") lines.push(`- Dev: ${packageManagerRunCmd} dev`, `- Deploy: ${packageManagerRunCmd} deploy`, `- Destroy: ${packageManagerRunCmd} destroy`);
|
|
6516
|
+
lines.push("", "For more details, see the guide on [Deploying to Cloudflare with Alchemy](https://www.better-t-stack.dev/docs/guides/cloudflare-alchemy).");
|
|
6539
6517
|
}
|
|
6540
|
-
return lines.length ?
|
|
6518
|
+
return lines.length ? `${lines.join("\n")}\n` : "";
|
|
6541
6519
|
}
|
|
6542
6520
|
|
|
6543
6521
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-better-t-stack",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.1",
|
|
4
4
|
"description": "A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"better-auth",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"prepublishOnly": "npm run build"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@better-t-stack/types": "^3.13.
|
|
70
|
+
"@better-t-stack/types": "^3.13.1",
|
|
71
71
|
"@clack/core": "^0.5.0",
|
|
72
72
|
"@clack/prompts": "^1.0.0-alpha.8",
|
|
73
73
|
"@orpc/server": "^1.13.0",
|