teableio/teable

View on GitHub
apps/nextjs-app/src/backend/api/rest/axios.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { createAxios } from '@teable/openapi';

export const getAxios = () => {
  const axios = createAxios();
  axios.defaults.baseURL = `http://localhost:${process.env.PORT}/api`;
  return axios;
};

export const axios = getAxios();