create-better-t-stack 3.0.1 → 3.0.3
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
CHANGED
package/dist/index.js
CHANGED
|
@@ -3158,7 +3158,9 @@ async function setupDeploymentTemplates(projectDir, context) {
|
|
|
3158
3158
|
const alchemyTemplateSrc = path.join(PKG_ROOT, "templates/deploy/alchemy");
|
|
3159
3159
|
if (context.webDeploy === "alchemy" && (context.serverDeploy === "alchemy" || isBackendSelf)) {
|
|
3160
3160
|
if (await fs.pathExists(alchemyTemplateSrc)) {
|
|
3161
|
-
|
|
3161
|
+
const webAppDir = path.join(projectDir, "apps/web");
|
|
3162
|
+
const destDir = isBackendSelf && await fs.pathExists(webAppDir) ? webAppDir : projectDir;
|
|
3163
|
+
await processAndCopyFiles("alchemy.run.ts.hbs", alchemyTemplateSrc, destDir, context);
|
|
3162
3164
|
await addEnvDtsToPackages(projectDir, context, alchemyTemplateSrc);
|
|
3163
3165
|
}
|
|
3164
3166
|
} else {
|
package/package.json
CHANGED
package/templates/auth/better-auth/convex/web/react/tanstack-start/src/routes/api/auth/$.ts.hbs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { reactStartHandler } from
|
|
2
|
-
import {
|
|
1
|
+
import { reactStartHandler } from "@convex-dev/better-auth/react-start";
|
|
2
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
3
3
|
|
|
4
|
-
export const
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
export const Route = createFileRoute("/api/auth/$")({
|
|
5
|
+
server: {
|
|
6
|
+
handlers: {
|
|
7
|
+
GET: ({ request }) => reactStartHandler(request),
|
|
8
|
+
POST: ({ request }) => reactStartHandler(request),
|
|
7
9
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
})
|
|
10
|
+
},
|
|
11
|
+
});
|