tkadkghdlf commited on
Commit
e993245
·
verified ·
1 Parent(s): 9dcb422

Sync from GitHub via hub-sync

Browse files
main/app/community/new/page.tsx CHANGED
@@ -14,7 +14,7 @@ import {
14
  const LeafletMap = dynamic(() => import("../../_components/LeafletMap"), {
15
  ssr: false,
16
  });
17
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
18
 
19
  const DEFAULT_CENTER: [number, number] = DEFAULT_MAP_CENTER;
20
  const MANUAL_CENTER: [number, number] = [35.1796, 129.0756];
 
14
  const LeafletMap = dynamic(() => import("../../_components/LeafletMap"), {
15
  ssr: false,
16
  });
17
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
18
 
19
  const DEFAULT_CENTER: [number, number] = DEFAULT_MAP_CENTER;
20
  const MANUAL_CENTER: [number, number] = [35.1796, 129.0756];
main/app/manual-route/page.tsx CHANGED
@@ -30,7 +30,7 @@ type ManualRouteStroke = {
30
  const DEFAULT_CENTER: ManualRoutePoint = [37.5665, 126.978];
31
  const SNAP_RADIUS_KM = 2.5;
32
  const MAX_DRAWN_POINTS_FOR_REQUEST = 500;
33
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
34
 
35
  const toRad = (deg: number) => (deg * Math.PI) / 180;
36
 
 
30
  const DEFAULT_CENTER: ManualRoutePoint = [37.5665, 126.978];
31
  const SNAP_RADIUS_KM = 2.5;
32
  const MAX_DRAWN_POINTS_FOR_REQUEST = 500;
33
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
34
 
35
  const toRad = (deg: number) => (deg * Math.PI) / 180;
36
 
main/app/my-posts/page.tsx CHANGED
@@ -16,7 +16,7 @@ const LeafletMap = dynamic(() => import("../_components/LeafletMap"), {
16
  ssr: false,
17
  });
18
 
19
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
20
 
21
  type CurrentUser = {
22
  id?: string | number;
@@ -789,4 +789,4 @@ export default function MyPostsPage() {
789
  `}</style>
790
  </main>
791
  );
792
- }
 
16
  ssr: false,
17
  });
18
 
19
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
20
 
21
  type CurrentUser = {
22
  id?: string | number;
 
789
  `}</style>
790
  </main>
791
  );
792
+ }
main/app/recent-shared-routes/page.tsx CHANGED
@@ -18,7 +18,7 @@ const LeafletMap = dynamic(() => import("../_components/LeafletMap"), {
18
  ssr: false,
19
  });
20
 
21
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
22
 
23
  type SortType = "latest" | "achievement";
24
 
@@ -384,4 +384,4 @@ export default function Page() {
384
  <RecentSharedRoutesPageContent />
385
  </Suspense>
386
  );
387
- }
 
18
  ssr: false,
19
  });
20
 
21
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
22
 
23
  type SortType = "latest" | "achievement";
24
 
 
384
  <RecentSharedRoutesPageContent />
385
  </Suspense>
386
  );
387
+ }
main/app/route-results/[id]/page.tsx CHANGED
@@ -22,7 +22,7 @@ import {
22
  const LeafletMap = dynamic(() => import("../../_components/LeafletMap"), {
23
  ssr: false,
24
  });
25
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
26
 
27
  export default function Page() {
28
  const params = useParams();
 
22
  const LeafletMap = dynamic(() => import("../../_components/LeafletMap"), {
23
  ssr: false,
24
  });
25
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
26
 
27
  export default function Page() {
28
  const params = useParams();
main/app/route-results/page.tsx CHANGED
@@ -90,7 +90,7 @@ type OSMClipResult = {
90
  routes: GeneratedRoute[];
91
  };
92
 
93
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
94
  const AVAILABLE_LABELS = [
95
  "cup",
96
  "face",
 
90
  routes: GeneratedRoute[];
91
  };
92
 
93
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
94
  const AVAILABLE_LABELS = [
95
  "cup",
96
  "face",
main/app/route/[id]/page.tsx CHANGED
@@ -21,7 +21,7 @@ import {
21
  const LeafletMap = dynamic(() => import("../../_components/LeafletMap"), {
22
  ssr: false,
23
  });
24
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
25
 
26
  export default function Page() {
27
  const params = useParams();
 
21
  const LeafletMap = dynamic(() => import("../../_components/LeafletMap"), {
22
  ssr: false,
23
  });
24
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
25
 
26
  export default function Page() {
27
  const params = useParams();
main/app/trend-routes/page.tsx CHANGED
@@ -8,7 +8,7 @@ import { fetchCommunityPostsFromApi } from "../_utils/communityApi";
8
 
9
  type SortType = "views" | "likes";
10
 
11
- const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL || "http://localhost:8000";
12
 
13
  type SafePostStats = {
14
  distance: string;
@@ -425,4 +425,4 @@ export default function Page() {
425
  `}</style>
426
  </main>
427
  );
428
- }
 
8
 
9
  type SortType = "views" | "likes";
10
 
11
+ const apiBase = process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://localhost:8000";
12
 
13
  type SafePostStats = {
14
  distance: string;
 
425
  `}</style>
426
  </main>
427
  );
428
+ }