1 Commits

Author SHA1 Message Date
dependabot[bot]
9756b7ab2f Bump next-auth from 5.0.0-beta.29 to 5.0.0-beta.30 in /apps/student
Bumps [next-auth](https://github.com/nextauthjs/next-auth) from 5.0.0-beta.29 to 5.0.0-beta.30.
- [Release notes](https://github.com/nextauthjs/next-auth/releases)
- [Commits](https://github.com/nextauthjs/next-auth/compare/next-auth@5.0.0-beta.29...next-auth@5.0.0-beta.30)

---
updated-dependencies:
- dependency-name: next-auth
  dependency-version: 5.0.0-beta.30
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-29 11:09:19 +00:00
5 changed files with 10 additions and 20 deletions

View File

@@ -1,3 +0,0 @@
ADMIN_DOMAIN = http://localhost:9001
DATABASE_URL = postgresql://postgres:postgres@localhost:5432/nextplacement
AUTH_SECRET= change_me_to_a_long_random_string

View File

@@ -5,8 +5,8 @@
"private": true,
"scripts": {
"dev": "dotenv -e ../../.env -- next dev --turbopack -p 9001",
"build": "dotenv -e ../../.env -- next build && cp -r .next/static .next/standalone/apps/admin/.next/static && cp -r public .next/standalone/apps/admin/public",
"start": "PORT=9001 dotenv -e ../../.env -- node .next/standalone/apps/admin/server.js",
"build": "dotenv -e ../../.env -- next build",
"start": "dotenv -e ../../.env -- next start -p 9001",
"lint": "next lint",
"lint:fix": "next lint --fix",
"typecheck": "tsc --noEmit"

View File

@@ -2,7 +2,6 @@
import path from 'path';
const __dirname = path.resolve();
const adminDomain = process.env.ADMIN_DOMAIN || "http://localhost:9001";
const nextConfig = {
transpilePackages: ['@workspace/ui', '@workspace/db'],
@@ -12,15 +11,15 @@ const nextConfig = {
return [
{
source: '/admin',
destination: `${adminDomain}/admin`,
destination: `${process.env.ADMIN_DOMAIN}/admin`,
},
{
source: '/admin/:path+',
destination: `${adminDomain}/admin/:path+`,
destination: `${process.env.ADMIN_DOMAIN}/admin/:path+`,
},
{
source: '/admin-static/:path+',
destination: `${adminDomain}/admin-static/:path+`,
destination: `${process.env.ADMIN_DOMAIN}/admin-static/:path+`,
}
];
}

View File

@@ -5,8 +5,8 @@
"private": true,
"scripts": {
"dev": "dotenv -e ../../.env -- next dev --turbopack -p 9000",
"build": "dotenv -e ../../.env -- next build && cp -r .next/static .next/standalone/apps/student/.next/static && cp -r public .next/standalone/apps/student/public",
"start": "PORT=9000 dotenv -e ../../.env -- node .next/standalone/apps/student/server.js",
"build": "dotenv -e ../../.env -- next build",
"start": "dotenv -e ../../.env -- next start -p 9000",
"lint": "next lint",
"lint:fix": "next lint --fix",
"typecheck": "tsc --noEmit"
@@ -20,7 +20,7 @@
"framer-motion": "^12.22.0",
"lucide-react": "^0.475.0",
"next": "^15.3.4",
"next-auth": "5.0.0-beta.29",
"next-auth": "5.0.0-beta.30",
"next-themes": "^0.4.6",
"react": "^19.1.0",
"react-dom": "^19.1.0",

View File

@@ -1,12 +1,6 @@
import { drizzle } from 'drizzle-orm/neon-http';
import * as schema from './schema.ts';
const databaseUrl = process.env.DATABSE_URL;
export const db = drizzle(process.env.DATABASE_URL!, { schema });
if(!databaseUrl) {
throw new Error{
"DTABASE_URL is missing. Create the required env file (see .env.example) and set DATABASE_URL"
};
}
export const db = drizzle(databaseUrl, { schema });
export * from './schema.ts';