Skip to content

Commit

Permalink
chore: make function url absolute in the cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Oct 31, 2024
1 parent b21ded6 commit a42bc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (!import.meta.env.VITE_DATABASE_CONFIG) {
}
const databaseSecrets: { databaseName: string; user: string } = JSON.parse(import.meta.env.VITE_DATABASE_CONFIG);

const functionsUrl = import.meta.env.VITE_FUNCTIONS_EMULATOR_URL || '/maps';
const functionsUrl = import.meta.env.VITE_FUNCTIONS_EMULATOR_URL || `${location.href}maps`;

const featureService = `${functionsUrl}/feature`;
const referenceMapService = `${functionsUrl}/reference`;
Expand Down

0 comments on commit a42bc7f

Please sign in to comment.