change domain

This commit is contained in:
neil molina 2023-06-08 09:24:47 +08:00
parent 1522198ca7
commit 338340d716
No known key found for this signature in database
GPG key ID: 52D69BF1F02F4267
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ function Bottles() {
const [isLoading, setLoading] = React.useState(true); const [isLoading, setLoading] = React.useState(true);
React.useEffect(() => { React.useEffect(() => {
fetch("https://5ey2dx9k7l.execute-api.us-east-1.amazonaws.com/prod/v0/bottles") fetch("https://158h030vz0.execute-api.us-east-1.amazonaws.com/prod/v0/bottles")
.then((res) => res.json()) .then((res) => res.json())
.then((res) => { .then((res) => {
setBottles(res); setBottles(res);

View file

@ -3,7 +3,7 @@ function PackageBottles() {
const [isLoading, setIsLoading] = React.useState(true); const [isLoading, setIsLoading] = React.useState(true);
React.useEffect(() => { React.useEffect(() => {
const url = window.location.pathname.replace('/+', 'https://5ey2dx9k7l.execute-api.us-east-1.amazonaws.com/prod/v0/bottles/'); const url = window.location.pathname.replace('/+', 'https://158h030vz0.execute-api.us-east-1.amazonaws.com/prod/v0/bottles/');
fetch(url) fetch(url)
.then((res) => res.json()) .then((res) => res.json())
.then((res) => { .then((res) => {

View file

@ -14,7 +14,7 @@
$('#stat-two').html('<div style="height: 400px"></div>'); $('#stat-two').html('<div style="height: 400px"></div>');
try { try {
fetch('https://5ey2dx9k7l.execute-api.us-east-1.amazonaws.com/prod/v0/signups') fetch('https://158h030vz0.execute-api.us-east-1.amazonaws.com/prod/v0/signups')
.then(res => res.json()) .then(res => res.json())
.then(res => { .then(res => {
const signups = res.signups ? res.signups.toLocaleString() : ""; const signups = res.signups ? res.signups.toLocaleString() : "";