Prompt to overwrite non-empty dirs before config

This commit is contained in:
Aman Varshney
2025-05-05 18:54:23 +05:30
parent ff13123bcb
commit 357dfbbbf9
29 changed files with 223 additions and 141 deletions

View File

@@ -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,

View File

@@ -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>

View File

@@ -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 || {};