mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
Prompt to overwrite non-empty dirs before config
This commit is contained in:
@@ -94,7 +94,7 @@ export const auth = betterAuth({
|
||||
database: "", // Invalid configuration
|
||||
trustedOrigins: [
|
||||
process.env.CORS_ORIGIN || "",{{#if (includes frontend "native")}}
|
||||
"my-better-t-app://", // Use hardcoded scheme{{/if}}
|
||||
"my-better-t-app://",{{/if}}
|
||||
],
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
|
||||
@@ -68,8 +68,8 @@ export default function SignInForm({
|
||||
type="email"
|
||||
value={field().state.value}
|
||||
onBlur={field().handleBlur}
|
||||
onInput={(e) => field().handleChange(e.currentTarget.value)} // Use onInput and currentTarget
|
||||
class="w-full rounded border p-2" // Example basic styling
|
||||
onInput={(e) => field().handleChange(e.currentTarget.value)}
|
||||
class="w-full rounded border p-2"
|
||||
/>
|
||||
<For each={field().state.meta.errors}>
|
||||
{(error) => (
|
||||
@@ -122,7 +122,7 @@ export default function SignInForm({
|
||||
<button
|
||||
type="button"
|
||||
onClick={onSwitchToSignUp}
|
||||
class="text-sm text-indigo-600 hover:text-indigo-800 hover:underline" // Example basic styling
|
||||
class="text-sm text-indigo-600 hover:text-indigo-800 hover:underline"
|
||||
>
|
||||
Need an account? Sign Up
|
||||
</button>
|
||||
|
||||
@@ -39,8 +39,6 @@ app.use(
|
||||
app.all("/api/auth{/*path}", toNodeHandler(auth));
|
||||
{{/if}}
|
||||
|
||||
app.use(express.json())
|
||||
|
||||
{{#if (eq api "trpc")}}
|
||||
app.use(
|
||||
"/trpc",
|
||||
@@ -67,6 +65,8 @@ app.use('/rpc{*path}', async (req, res, next) => {
|
||||
});
|
||||
{{/if}}
|
||||
|
||||
app.use(express.json())
|
||||
|
||||
{{#if (includes examples "ai")}}
|
||||
app.post("/ai", async (req, res) => {
|
||||
const { messages = [] } = req.body || {};
|
||||
|
||||
Reference in New Issue
Block a user