From 5397828c6fcca2f8589ce2ccfbc2ac2a9ea022b3 Mon Sep 17 00:00:00 2001 From: ackmase Date: Mon, 29 Sep 2025 21:24:14 -0700 Subject: [PATCH] Create config.ts Needed to add this file for Week 4, Day 3 lesson. Without it, running the server locally complained "Module not found: Can't resolve '../lib/config' 1 | import { useUser, useAuth } from "@clerk/nextjs"; 2 | import { useEffect, useState, useCallback } from "react"; > 3 | import { API_URL } from "../lib/config"; | ^" --- frontend/lib/config.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 frontend/lib/config.ts diff --git a/frontend/lib/config.ts b/frontend/lib/config.ts new file mode 100644 index 00000000..3391b949 --- /dev/null +++ b/frontend/lib/config.ts @@ -0,0 +1,3 @@ +// lib/config.ts +export const API_URL = + process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8000";