mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
04c7cef99b
Closes #84734 Fixes environmental variable names in `with-supabase` example README to match the actual `.env.example` file. Updates `NEXT_PUBLIC_SUPABASE_ANON_KEY` to `NEXT_PUBLIC_SUPABASE_PUBLISHABLE_OR_ANON_KEY` in two locations. --------- Co-authored-by: Joseph <joseph.chamochumbi@vercel.com>
12 lines
353 B
TypeScript
12 lines
353 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|
|
// This check can be removed, it is just for tutorial purposes
|
|
export const hasEnvVars =
|
|
process.env.NEXT_PUBLIC_SUPABASE_URL &&
|
|
process.env.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY;
|