Skip to content

Commit

Permalink
Use gzipped route info and snapper files
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed May 26, 2023
1 parent 3aa9a88 commit 5690e8c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
// HTTP and HTTPS content, so use the Cloudfront HTTPS interface. That'll need
// CDN invalidations when we update these files. But when serving locally for
// development, HTTPS is also fine to use.
var routeSnapperUrl = `https://atip.uk/route-snappers/${authorityName}.bin`;
var routeInfoUrl = `https://atip.uk/route-info/${authorityName}.bin`;
var routeSnapperUrl = `https://atip.uk/route-snappers/${authorityName}.bin.gz`;
var routeInfoUrl = `https://atip.uk/route-info/${authorityName}.bin.gz`;
if (!prod) {
routeSnapperUrl = `https://atip.uk/route-snappers-dev/${authorityName}.bin`;
routeInfoUrl = `https://atip.uk/route-info-dev/${authorityName}.bin`;
routeSnapperUrl = `https://atip.uk/route-snappers-dev/${authorityName}.bin.gz`;
routeInfoUrl = `https://atip.uk/route-info-dev/${authorityName}.bin.gz`;
}
function toggleAbout() {
Expand Down

0 comments on commit 5690e8c

Please sign in to comment.