Skip to content

Commit

Permalink
chore: Update backendUrl in contactService.js to use REACT_APP_BACKEN…
Browse files Browse the repository at this point in the history
…D_URL
  • Loading branch information
ppokrovskii committed Jun 22, 2024
1 parent b1cb8da commit a039d11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions infra/runtime/landing_backend.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ output "LANDING_BACKEND_FUNCTION_APP_NAME" {
}

# Output Function App URL
output "LANDING_BACKEND_FUNCTION_APP_URL" {
value = azurerm_linux_function_app.landing_backend.default_hostname
}
# output "LANDING_BACKEND_FUNCTION_APP_URL" {
# value = azurerm_linux_function_app.landing_backend.default_hostname
# }

# Output Function App publish profile
output "LANDING_BACKEND_GET_PUBLISHING_PROFILE_SCRIPT" {
Expand Down
2 changes: 1 addition & 1 deletion landing/src/services/contactService.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const submitContactDetails = async (contactDetails) => {
const backendUrl = process.env.LANDING_REACT_APP_BACKEND_URL;
const backendUrl = process.env.REACT_APP_BACKEND_URL;
try {
const response = await fetch(`${backendUrl}/contact_details`, {
method: 'POST',
Expand Down

0 comments on commit a039d11

Please sign in to comment.