regex
regex
Explore posts from servers
BABetter Auth
Created by regex on 4/11/2025 in #help
Type error defining stripe plugin when project type is module.
@bekacru any ideas?
8 replies
BABetter Auth
Created by regex on 4/11/2025 in #help
Type error defining stripe plugin when project type is module.
No description
8 replies
BABetter Auth
Created by regex on 4/11/2025 in #help
Type error defining stripe plugin when project type is module.
package.json
{
"name": "express-boilerplate",
"version": "1.0.0",
"main": "index.js",
"author": "author",
"license": "MIT",
"type": "module",
"description": "Express Boilerplate",
"imports": {
"#*": "./*"
},
}
{
"name": "express-boilerplate",
"version": "1.0.0",
"main": "index.js",
"author": "author",
"license": "MIT",
"type": "module",
"description": "Express Boilerplate",
"imports": {
"#*": "./*"
},
}
8 replies
BABetter Auth
Created by regex on 4/11/2025 in #help
Type error defining stripe plugin when project type is module.
my tsconfig:
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": ["**/*.ts"],
"exclude": ["dist"]
}
{
"extends": "@tsconfig/node22/tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "."
},
"include": ["**/*.ts"],
"exclude": ["dist"]
}
8 replies
BABetter Auth
Created by regex on 4/11/2025 in #help
Type error defining stripe plugin when project type is module.
8 replies
BABetter Auth
Created by craftzcode on 4/6/2025 in #help
What is the best approach when handling the protected and unprotected routes
8 replies
BABetter Auth
Created by craftzcode on 4/6/2025 in #help
What is the best approach when handling the protected and unprotected routes
thats how i do it
8 replies
BABetter Auth
Created by craftzcode on 4/6/2025 in #help
What is the best approach when handling the protected and unprotected routes
import { headers } from 'next/headers';
import { redirect } from 'next/navigation';
import { auth } from '@/lib/auth';

export default async function AuthLayout({
children,
}: {
children: React.ReactNode;
}) {
const user = await auth.api.getSession({
headers: await headers(),
});

if (user) {
redirect('/dashboard');
}

return <>{children}</>;
}
import { headers } from 'next/headers';
import { redirect } from 'next/navigation';
import { auth } from '@/lib/auth';

export default async function AuthLayout({
children,
}: {
children: React.ReactNode;
}) {
const user = await auth.api.getSession({
headers: await headers(),
});

if (user) {
redirect('/dashboard');
}

return <>{children}</>;
}
8 replies
BABetter Auth
Created by yoyojoe on 3/19/2025 in #help
Stripe one time payments?
I was also wondering about this, i'd like to implement single time payments rather than subscriptions
10 replies
TTCTheo's Typesafe Cult
Created by regex on 8/3/2024 in #questions
Uploadthing, image is accessible even after deletion?
yep, it is returned by the cache
10 replies
TTCTheo's Typesafe Cult
Created by regex on 8/3/2024 in #questions
Uploadthing, image is accessible even after deletion?
can we bust that cache?
10 replies
DTDrizzle Team
Created by alainux on 6/16/2024 in #help
Correct way to instantiate a different client per environment?
I am having the some questions.. it seems that everyone uses serverless even for the local development purposes. Have you found any better solution?
2 replies
DTDrizzle Team
Created by regex on 6/22/2024 in #help
Is this a bad pattern to do? I wanna call my local postgre while developing and use neon in prod.
or this doesn't make sense?
5 replies