Skip to content

Commit

Permalink
fix api
Browse files Browse the repository at this point in the history
  • Loading branch information
SkidGod4444 committed Nov 11, 2024
1 parent d15bf42 commit 9f8377c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"lint": "next lint",
"lint:fix": "next lint --fix",
"test": "vitest --run",
"db:generate": "prisma generate",
"format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache",
"format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache"
},
Expand Down
11 changes: 3 additions & 8 deletions packages/auth/src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ import { betterAuth, BetterAuthOptions } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import { prisma } from "@repo/db";
import { multiSession } from "better-auth/plugins";
const BaseDomain =
process.env.NODE_ENV === "production"
? process.env.API_DOMAIN as string
: "http://localhost:3001";
const AppDomain =
process.env.NODE_ENV === "production"
? process.env.APP_DOMAIN as string
: "http://localhost:3003";

const BaseDomain = process.env.NODE_ENV === "production" ? process.env.API_DOMAIN as string : "http://localhost:3001";
const AppDomain = process.env.NODE_ENV === "production" ? process.env.APP_DOMAIN as string : "http://localhost:3003";

export const config = {
trustedOrigins: [AppDomain],
Expand Down
3 changes: 0 additions & 3 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"exports": {
".": "./src/mail.ts"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
Expand Down

0 comments on commit 9f8377c

Please sign in to comment.