#365 Use relative urls in the browser to avoid needing to hardcode the domain name (#375)

* #365 Updated documentation for changing ports.  Updated the nuxt config to use separate internal and external api urls

* #365 Switch to using relative urls

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Don Benjamin
2024-04-15 15:02:28 +01:00
committed by GitHub
parent ae18bcbb8d
commit 75c2107b6c
4 changed files with 7 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ export function getOpnRequestsOptions(request, opts) {
addPasswordToFormRequest(request, opts)
addCustomDomainHeader(request, opts)
if (!opts.baseURL) opts.baseURL = config.public.apiBase
if (!opts.baseURL) opts.baseURL = config.privateApiBase || config.public.apiBase
return {
async onResponseError({response}) {