-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turbo #170
base: main
Are you sure you want to change the base?
Turbo #170
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { ReactNode } from 'react'; | ||
|
||
type RootLayoutProperties = { | ||
readonly children: ReactNode; | ||
}; | ||
|
||
const RootLayout = ({ children }: RootLayoutProperties) => ( | ||
<html lang="en"> | ||
<body>{children}</body> | ||
</html> | ||
); | ||
|
||
export default RootLayout; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "app", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev -p 3000", | ||
"dev": "next dev -p 3000 --turbopack", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Turbopack is compatible but requires security updates The Next.js version 15.0.3 fully supports Turbopack, however there are two important points to address:
🔗 Analysis chainVerify Turbopack compatibility with Next.js version While enabling Turbopack can improve development speed, please note that it's still in beta and has some limitations. Ensure all team members are aware of:
Let me gather more information about the Next.js version and Turbopack configuration. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if the Next.js version supports Turbopack
# and if there are any known issues
# Get the Next.js version from package.json
NEXT_VERSION=$(cat apps/app/package.json | jq -r '.dependencies.next')
# Check Next.js docs for Turbopack compatibility
echo "Checking Next.js $NEXT_VERSION for Turbopack compatibility..."
curl -s "https://nextjs.org/docs/app/api-reference/next-config-js/turbopack"
# Look for any Turbopack-related issues in the codebase
echo "Checking for potential Turbopack configuration issues..."
fd --type f --extension js,ts,tsx . apps/ --exec grep -l "use client"
Length of output: 877 Script: #!/bin/bash
# Check Next.js version and Turbopack configuration
echo "Next.js version:"
cat apps/app/package.json | jq '.dependencies.next'
# Check for Turbopack configuration in next.config.js
echo -e "\nTurbopack configuration:"
fd next.config.js apps/ --exec cat {}
# Check for any experimental features
echo -e "\nChecking for experimental features:"
fd next.config.js apps/ --exec grep -A 5 "experimental"
Length of output: 353 |
||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint", | ||
|
@@ -11,6 +11,7 @@ | |
}, | ||
"dependencies": { | ||
"@clerk/nextjs": "^6.3.0", | ||
"@prisma/client": "5.22.0", | ||
"@repo/analytics": "workspace:*", | ||
"@repo/database": "workspace:*", | ||
"@repo/design-system": "workspace:*", | ||
|
@@ -21,11 +22,13 @@ | |
"@repo/seo": "workspace:*", | ||
"@repo/tailwind-config": "workspace:*", | ||
"@sentry/nextjs": "^8.37.1", | ||
"import-in-the-middle": "^1.11.2", | ||
"lucide-react": "^0.456.0", | ||
"next": "15.0.3", | ||
"next-themes": "^0.4.3", | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1" | ||
"react-dom": "18.3.1", | ||
"require-in-the-middle": "^7.4.0" | ||
}, | ||
"devDependencies": { | ||
"@repo/typescript-config": "workspace:*", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Enhance the layout component with Next.js best practices.
The component should be enhanced with: