Files
explore/lib/api/isNeedProxy.ts
T
2023-04-11 11:28:54 -03:00

11 lines
420 B
TypeScript

// import appConfig from 'configs/app/config';
// FIXME
// I was not able to figure out how to send CORS with credentials from localhost
// unsuccessfully tried different ways, even custom local dev domain
// so for local development we have to use next.js api as proxy server
export default function isNeedProxy() {
return true;
// return appConfig.host === 'localhost' && appConfig.host !== appConfig.api.host;
}