Comments (1)
this is my app/layout file. commented it out to wait for a fix.
- Error is not showing up on deployment though.
import type { Metadata } from "next";
import { Roboto } from "next/font/google";
import "./globals.scss";
import { SATSATmetadata } from "@/utils/metadata";
import NextTopLoader from "nextjs-toploader";
import "react-tooltip/dist/react-tooltip.css";
import { Toaster } from "react-hot-toast";
import { getServerSession } from "next-auth";
import SessionProvider from "@/components/SessionProvider";
import { options } from "./api/auth/[...nextauth]/options";
// import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next";
const roboto = Roboto({
subsets: ["latin", "greek"],
weight: ["300", "400", "500", "700", "900"],
});
export const metadata: Metadata = SATSATmetadata;
export default async function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
const session = await getServerSession(options);
return (
<html lang="en">
<body className={`antialiased ${roboto.className}`}>
<NextTopLoader
showSpinner={false}
color="#29a173"
initialPosition={0.04}
crawlSpeed={300}
height={2}
crawl={true}
easing="ease"
speed={350}
shadow="0 0 10px #29a173,0 0 5px #29a173"
/>
<Toaster />
<SessionProvider session={session}>{children}</SessionProvider>
{/* <Analytics
beforeSend={(event) => {
const url = new URL(event.url);
url.searchParams.delete("plan");
return {
...event,
url: url.toString(),
};
}}
/> */}
<SpeedInsights />
</body>
</html>
);
}
from next.js.
Related Issues (20)
- Hot reload causes tab to hang and crash HOT 1
- Remove @babel/plugin-transform-classes HOT 1
- Remove @babel/plugin-transform-classes HOT 1
- Remove @babel/plugin-transform-classes
- Functions are not valid as a child of Client Components HOT 1
- server actions block navigation
- navigation from `pages` directory to `app` does not refresh page which results in a blank page
- output export ssg generation for dynamic even with generateStaticParams id value is comming as %5Bslug%5D so page is not generated in build HOT 1
- Error: Invariant: attempted to hard navigate to the same URL
- Middleware Caches Uploaded Files In Memory
- "Module not found: Can't resolve" when using App router but works without error for Pages Router HOT 1
- req.url and req.nextUrl Show Docker Container IP/Port Instead of Real Host
- NextJS 14: Swiper only shows first slide HOT 1
- NextJS 14: Carousels only displaying first slide HOT 6
- revalidateTags is working localhost but not on vercel HOT 1
- Next.js/script empty strategy props not working in _document.js HOT 1
- next/script empty strategy props not working in _document.js HOT 1
- Web Component Complex Values not working as expected on latest canary HOT 3
- [create-next-app, Yarn, linux/Darwin] Fresh Next projects can't be pushed to GitHub due to size of tracked @next/swc binary HOT 3
- Dynamic import trace in page source
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next.js.