From 7c4ef8472ea68386095a7e61ff834ab9c95eaa83 Mon Sep 17 00:00:00 2001 From: Nathaniel Tampus Date: Sat, 4 Mar 2023 18:39:43 +0800 Subject: [PATCH] add config file for api url --- client/src/config.ts | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 client/src/config.ts diff --git a/client/src/config.ts b/client/src/config.ts new file mode 100644 index 0000000..397995f --- /dev/null +++ b/client/src/config.ts @@ -0,0 +1,2 @@ +// back-end server url +export const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001";