1
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
export const API_URL = process.env.NEXT_PUBLIC_API_URL ?? "http://127.0.0.1:8000";
|
||||
const configuredApiUrl = process.env.NEXT_PUBLIC_API_URL;
|
||||
export const API_URL = configuredApiUrl === undefined ? "http://127.0.0.1:8000" : configuredApiUrl || "/api";
|
||||
|
||||
export type Subject = { id: number; name: string; slug: string; created_at: string };
|
||||
export type Week = { id: number; subject_id: number; number: number; title?: string | null; created_at: string };
|
||||
|
||||
Reference in New Issue
Block a user