add config file for api url

This commit is contained in:
Nathaniel Tampus
2023-03-04 18:39:43 +08:00
parent 6f7a9fac14
commit 7c4ef8472e

2
client/src/config.ts Normal file
View File

@@ -0,0 +1,2 @@
// back-end server url
export const API_URL = process.env.NEXT_PUBLIC_API_URL || "http://localhost:3001";