Comments (2)
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.
have you found a solution to this?
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
from next.js.
Related Issues (20)
- App router configuration incorrectly sets async tags instead of defer
- Layout is re-rendered when server action is called HOT 1
- Stale environment variable values when accessing from middleware
- Nextjs + SWC produces null __debugSource/_debugInfo
- Docs: Inconsistent Titles for `unstable_` Functions HOT 1
- Can not work with `res.flushHeaders();`
- ### Summary HOT 1
- `npm run dev` fails with custom `.babelrc` file HOT 1
- Cannot create app router localized sitemap HOT 2
- Calling router.refresh() reset scroll to top for previous page
- Using force-cache prevents revalidation HOT 2
- Cannot find module 'tls'
- Cannot find module 'tls' HOT 1
- ERR_SSL_WRONG_VERSION_NUMBER when doing fetch request in middleware to api route HOT 1
- Route interception doesn't work with two identical intercepted paths in different layouts/groups
- ERR_SSL_WRONG_VERSION_NUMBER when doing fetch request in middleware to api route HOT 1
- ERR_SSL_WRONG_VERSION_NUMBER when doing fetch request in middleware to api route HOT 3
- next build --no-mangling keeps mangling
- CSP with nonce does not work for page router HOT 1
- Turbopack doesn't correctly handle catch-all segments in nested route groups
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.