url-minify/frontend/helpers/Axios.js

12 lines
225 B
JavaScript
Raw Normal View History

import axios from 'axios'
2022-02-13 06:02:34 +00:00
var API_URL = process.env.NEXT_PUBLIC_API_URL
2022-02-13 06:02:34 +00:00
export default axios.create({
2022-02-13 08:28:33 +00:00
baseURL: API_URL,
headers: {
'Content-Type': 'application/json',
'Access-Control-Allow-Origin': '*',
2022-02-13 08:28:33 +00:00
},
})