Skip to content

Commit

Permalink
Fix auth & nextjs config file with env validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Mar 10, 2024
1 parent 6344f55 commit 29ee246
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { loginSchema } from "@/server/schemas";
import { getUserByEmail } from "@/server/utils/user";

// Environment variables:
import { env } from "@/env.mjs";
import { env } from "@/env.js";

// Providers:
import Github from "next-auth/providers/github";
Expand Down
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
await import("./src/env.js");

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
};

export default nextConfig;
13 changes: 0 additions & 13 deletions next.config.mjs

This file was deleted.

0 comments on commit 29ee246

Please sign in to comment.