This commit is contained in:
1 parent
b260d5f6d3
commit
fa714c2889
1 file changed
+1
-1
@@ -1,6 +1,6 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const baseURL = typeof window !== 'undefined' ? '/api' : (process.env.NEXT_PUBLIC_API_URL || '/api');
|
||||
const baseURL = typeof window !== 'undefined' ? 'http://localhost:3000/api' : (process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3000/api');
|
||||
|
||||
const api = axios.create({
|
||||
baseURL,
|
||||
|
||||
Reference in new issue
Block a user