Commit 8ad6a942 authored by tom's avatar tom

comments

parent 765c55bf
......@@ -9,6 +9,8 @@ export default function buildUrl(
pathParams?: Record<string, string>,
queryParams?: Record<string, string>,
) {
// FIXME was not able to figure out how to send CORS with credentials from localhost
// so for local development we use nextjs api as proxy server (only!)
const base = appConfig.host === 'localhost' ? appConfig.baseUrl : appConfig.api.endpoint;
const path = appConfig.host === 'localhost' ?
'/proxy' + appConfig.api.basePath + RESOURCES[resource].path :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment