Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authjs v5 #8

Merged
merged 4 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ DOCKER_PORT=
DOCKER_PORT_RANGE=5000-6000
# Hostname for the container host (where the containers will be run)
CONTAINER_HOST=
# Public URL for the app
NEXTAUTH_URL=
# NextAuth secret, can be anything random
NEXTAUTH_SECRET=
AUTH_SECRET=
# Auth0 credentials
AUTH0_ID=
AUTH0_SECRET=
Expand Down
11 changes: 5 additions & 6 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import "dotenv/config";
import type { Config } from "drizzle-kit";
import { defineConfig } from "drizzle-kit";

const config: Config = {
driver: "pg",
export default defineConfig({
dialect: "postgresql",
out: "./src/lib/drizzle",
schema: "./src/lib/drizzle/schema.ts",
dbCredentials: {
connectionString: process.env.DATABASE_URL as string,
url: process.env.DATABASE_URL as string,
},
verbose: true,
strict: true,
};
export default config;
});
7 changes: 6 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@ const nextConfig = {
},
];
},
webpack(config) {
webpack(config, { webpack }) {
config.module.rules.push({
test: /\.node$/,
loader: "node-loader",
});
config.plugins.push(
new webpack.IgnorePlugin({
resourceRegExp: /^pg-native$|^cloudflare:sockets$/,
}),
);
return config;
},
};
Expand Down
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"lint": "biome lint --apply .",
"format": "biome format --write .",
"drizzle-kit": "drizzle-kit",
"db:push": "drizzle-kit push:pg"
"db:push": "drizzle-kit push"
},
"dependencies": {
"@next/bundle-analyzer": "^14.2.3",
Expand Down Expand Up @@ -44,11 +44,9 @@
"drizzle-orm": "^0.30.4",
"lucide-react": "^0.358.0",
"next": "14.2.3",
"next-auth": "4.24.7",
"next-auth": "5.0.0-beta.18",
"next-themes": "^0.3.0",
"node-loader": "^2.0.0",
"pg": "^8.11.3",
"pg-native": "^3.0.1",
"postgres": "^3.4.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -69,7 +67,7 @@
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
"autoprefixer": "^10.4.19",
"drizzle-kit": "^0.20.17",
"drizzle-kit": "^0.21.1",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.1",
"tailwindcss-dotted-background": "^1.1.0",
Expand Down
Loading
Loading