use cdn for everything

This commit is contained in:
frillweeman
2025-09-26 18:07:21 -06:00
parent 106021c334
commit 9c96f56b65
3 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ def lambda_handler(event, context):
}
s3 = boto3.client('s3')
bucket = 'deflock-clusters'
bucket = 'cdn.deflock.me'
key = 'alpr-counts.json'
s3.put_object(

View File

@@ -1,6 +1,6 @@
variable "deflock_stats_bucket" {
description = "S3 bucket for the ALPR counts JSON file"
default = "deflock-clusters"
default = "cdn.deflock.me"
}
variable "deflock_cdn_bucket" {

View File

@@ -71,13 +71,13 @@ export const getSponsors = async () => {
}
export const getALPRCounts = async () => {
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/alpr-counts.json";
const s3Url = "https://cdn.deflock.me/alpr-counts.json";
const response = await apiService.get(s3Url);
return response.data;
}
export const getCities = async () => {
const s3Url = "https://deflock-clusters.s3.us-east-1.amazonaws.com/flock_cameras_null.json";
const s3Url = "https://cdn.deflock.me/flock_cameras_null.json";
const response = await apiService.get(s3Url);
return response.data;
}