Hardcode+middleware
This commit is contained in:
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
||||
const envSchema = z.object({
|
||||
NODE_ENV: z.enum(['development', 'production', 'test']).default('development'),
|
||||
PORT: z.string().default('3000'),
|
||||
DATABASE_URL: z.string().default('postgresql://postgres:postgres@localhost:5432/qrmaster?schema=public'),
|
||||
DATABASE_URL: z.string(),
|
||||
NEXTAUTH_URL: z.string().default('http://localhost:3050'),
|
||||
NEXTAUTH_SECRET: z.string().default('development-secret-change-in-production'),
|
||||
GOOGLE_CLIENT_ID: z.string().optional(),
|
||||
|
||||
@@ -23,6 +23,10 @@ export function middleware(req: NextRequest) {
|
||||
'/barcode-generator',
|
||||
'/custom-qr-code-generator',
|
||||
'/manage-qr-codes',
|
||||
'/coupon',
|
||||
'/feedback',
|
||||
'/vcard',
|
||||
'/display',
|
||||
];
|
||||
|
||||
// Check if path is public
|
||||
|
||||
Reference in New Issue
Block a user