metadata and env update

This commit is contained in:
Syasya 2025-08-21 15:07:19 +08:00
parent e689384977
commit 209516b1a6
3 changed files with 21 additions and 26 deletions

View File

@ -1,4 +1,4 @@
NEXT_PUBLIC_API_BASE_URL="http://localhost:8000" FASTAPI_URL="http://localhost:8000"
INTERNAL_API_BASE_URL="http://localhost:3005" INTERNAL_API_BASE_URL="http://localhost:3005"

View File

@ -1,30 +1,25 @@
'use client'; // app/layout.tsx
import ProviderComponent from '@/components/layouts/provider-component'; import type { Metadata } from "next";
import 'react-perfect-scrollbar/dist/css/styles.css'; import ProviderComponent from "@/components/layouts/provider-component";
import '../styles/tailwind.css'; import "react-perfect-scrollbar/dist/css/styles.css";
import { Metadata } from 'next'; import "../styles/tailwind.css";
import { Nunito } from 'next/font/google'; import { Nunito } from "next/font/google";
import { Exo_2 } from "next/font/google"; import { Exo_2 } from "next/font/google";
const exo2 = Exo_2({ const exo2 = Exo_2({ subsets: ["latin"], variable: "--font-exo2", weight: ["200", "400"] });
subsets: ["latin"], const nunito = Nunito({ weight: ["400","500","600","700","800"], subsets: ["latin"], display: "swap", variable: "--font-nunito" });
variable: "--font-exo2",
weight: ["200", "400"],
});
const nunito = Nunito({ export const metadata: Metadata = {
weight: ['400', '500', '600', '700', '800'], title: "Rooftop Meter",
subsets: ['latin'], icons: { icon: "/favicon.png" }, // or "/favicon.ico"
display: 'swap', };
variable: '--font-nunito',
});
export default function RootLayout({ children }: { children: React.ReactNode }) { export default function RootLayout({ children }: { children: React.ReactNode }) {
return ( return (
<html lang="en"> <html lang="en" className={`${exo2.variable} ${nunito.variable}`}>
<body className={exo2.variable}> <body>
<ProviderComponent>{children}</ProviderComponent> <ProviderComponent>{children}</ProviderComponent>
</body> </body>
</html> </html>
) );
} }

View File

@ -10,7 +10,7 @@ export interface TimeSeriesResponse {
} }
const API_BASE_URL = const API_BASE_URL =
process.env.NEXT_PUBLIC_API_BASE_URL ?? "http://127.0.0.1:8000"; process.env.FASTAPI_URL ?? "http://127.0.0.1:8000";
export const crmapi = { export const crmapi = {
getProjects: async () => { getProjects: async () => {