refactor: Changing the url
This commit is contained in:
parent
ea02576095
commit
3afc14cb16
@ -12,9 +12,9 @@ export default function getAPIClient(ctx?: Pick<next.NextPageContext, 'req'> | {
|
|||||||
const { '@smartAuth-token': token } = parseCookies(ctx)
|
const { '@smartAuth-token': token } = parseCookies(ctx)
|
||||||
|
|
||||||
const api = axios.create({
|
const api = axios.create({
|
||||||
// baseURL: "https://api.energiasmart.com.br/api",
|
baseURL: 'https://api.energiasmart.com.br/api'
|
||||||
baseURL: "https://api.energiasmart.klupp.com.br/api",
|
// baseURL: "https://api.energiasmart.klupp.com.br/api",
|
||||||
});
|
})
|
||||||
|
|
||||||
api.interceptors.request.use(config => {
|
api.interceptors.request.use(config => {
|
||||||
return config;
|
return config;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user