Skip to content

Commit 6340ac7

Browse files
authored
Migrate from next-auth to better-auth (#885)
* migrated to better auth * user * oauth * type error * test * zod v4 * cleanup * types * zod v4 migation * lint
1 parent 05f022e commit 6340ac7

81 files changed

Lines changed: 1836 additions & 1810 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/tmp
88
# testing
99
/coverage
10-
10+
/.claude/skills/
1111
# database
1212
/prisma/db.sqlite
1313
/prisma/db.sqlite-journal

jest.api.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,7 @@ const createJestConfig = nextJest(nextConfig);
4747
export default async () => ({
4848
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
4949
...(await createJestConfig(jestConfig as any)()),
50-
transformIgnorePatterns: ["node_modules/(?!next-intl)/"],
50+
transformIgnorePatterns: [
51+
"node_modules/(?!next-intl|better-auth|@better-auth)/",
52+
],
5153
});

jest.pages.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const jestConfig: JestConfigWithTsJest = {
1616
"^.+\\.mjs$": "ts-jest",
1717
},
1818
setupFilesAfterEnv: ["<rootDir>/jest.setup.ts"],
19-
testEnvironment: "jest-environment-jsdom",
19+
testEnvironment: "jest-fixed-jsdom",
2020
modulePathIgnorePatterns: ["<rootDir>/docs/"],
2121
moduleNameMapper: {
2222
"^~/(.*)$": "<rootDir>/src/$1",
@@ -29,5 +29,7 @@ const jestConfig: JestConfigWithTsJest = {
2929
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3030
export default async () => ({
3131
...(await createJestConfig(jestConfig as any)()),
32-
transformIgnorePatterns: ["node_modules/(?!next-intl)/"],
32+
transformIgnorePatterns: [
33+
"node_modules/(?!next-intl|better-auth|@better-auth)/",
34+
],
3335
});

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/** @type {import("next").NextConfig} */
88
const config = {
99
reactStrictMode: true,
10+
allowedDevOrigins: ["10.0.0.217"],
1011
// https://nextjs.org/docs/advanced-features/output-file-tracing
1112
output: "standalone",
1213
/**
@@ -20,7 +21,6 @@ const config = {
2021
// localeDetection: false,
2122
locales: ["en", "fr", "no", "pl", "zh-tw", "zh", "es", "ru", "de", "ua"],
2223
},
23-
trailingSlash: true,
2424
async redirects() {
2525
return [
2626
{

0 commit comments

Comments
 (0)