We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The frontend calls the backend using process.env.NEXT_PUBLIC_AGENTA_API_URL
process.env.NEXT_PUBLIC_AGENTA_API_URL
For instnace
export const createAppFromTemplate = async ( templateObj: AppTemplate, ignoreAxiosError: boolean = false, ) => { const response = await axios.post( `${process.env.NEXT_PUBLIC_AGENTA_API_URL}/api/apps/app_and_variant_from_template/`, templateObj, {_ignoreError: ignoreAxiosError} as any, ) return response }
We want to call the same host when NEXT_PUBLIC_AGENTA_API_URL is empty.
One solution is to use ${window.location.host} when NEXT_PUBLIC_AGENTA_API_URL is set
${window.location.host}
This is needed to fix another issue in deployment
The text was updated successfully, but these errors were encountered:
Fixed in #970
Sorry, something went wrong.
bekossy
No branches or pull requests
The frontend calls the backend using
process.env.NEXT_PUBLIC_AGENTA_API_URL
For instnace
We want to call the same host when NEXT_PUBLIC_AGENTA_API_URL is empty.
One solution is to use
${window.location.host}
when NEXT_PUBLIC_AGENTA_API_URL is setThis is needed to fix another issue in deployment
The text was updated successfully, but these errors were encountered: