Skip to content

Commit

Permalink
chore: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tiesen243 committed Jan 18, 2025
1 parent d8e7107 commit 1210e7d
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 55 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { cn } from '@yuki/ui/utils'

import { SessionProvider } from '@/lib/auth/react'
import { auth } from '@/lib/auth/server'
import { seo } from '@/lib/seo'
import { createMetadata } from '@/lib/metadata'
import { TRPCReactProvider } from '@/lib/trpc/react'

const geistSans = Geist({ variable: '--font-sans', subsets: ['latin'] })
Expand All @@ -33,4 +33,4 @@ export default async ({ children }: Readonly<{ children: React.ReactNode }>) =>
)
}

export const metadata = seo({})
export const metadata = createMetadata({})
36 changes: 36 additions & 0 deletions apps/web/lib/metadata.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { Metadata } from 'next'

import { getBaseUrl } from '@/lib/utils'

export const createMetadata = (
overides: Omit<Metadata, 'title'> & { title: string },
): Metadata => {
const siteName = 'Create Yuki Turbo'

const url = overides.openGraph?.url
? `${getBaseUrl()}${overides.openGraph.url}`
: getBaseUrl()
const images = [
...((overides.openGraph?.images as [] | null) ?? []),
'https://tiesen.id.vn/api/og', // Or create your own API route to generate OG images in `/app/api/og`
]

return {
...overides,
metadataBase: new URL(getBaseUrl()),
title: overides.title ? `${siteName} | ${overides.title}` : siteName,
description:
overides.description ??
'Clean and typesafe starter monorepo using Turborepo along with Next.js and tRPC ',
applicationName: siteName,
alternates: { canonical: url },
twitter: { card: 'summary_large_image' },
openGraph: { url, images, siteName, type: 'website', ...overides.openGraph },
icons: {
// Replace with your own icons
icon: 'https://tiesen.id.vn/favicon.ico',
shortcut: 'https://tiesen.id.vn/favicon-16x16.png',
apple: 'https://tiesen.id.vn/apple-touch-icon.png',
},
}
}
44 changes: 0 additions & 44 deletions apps/web/lib/seo.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@yuki/auth": "workspace:*",
"@yuki/db": "workspace:*",
"@yuki/ui": "workspace:*",
"next": "15.1.4",
"next": "15.1.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"superjson": "^2.2.2",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"turbo": "^2.3.3",
"typescript": "^5.7.3"
},
"packageManager": "bun@1.1.43",
"packageManager": "bun@1.1.45",
"engines": {
"bun": "^1.1.43",
"node": ">=20.18.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@radix-ui/react-toast": "^1.2.4",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.471.1",
"lucide-react": "^0.473.0",
"next-themes": "^0.4.4",
"react": "^19.0.0",
"tailwind-merge": "^2.6.0"
Expand Down
3 changes: 1 addition & 2 deletions tooling/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@
"prettier": "@yuki/prettier-config",
"dependencies": {
"@eslint/compat": "^1.2.5",
"@next/eslint-plugin-next": "^15.1.4",
"@next/eslint-plugin-next": "^15.1.5",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-turbo": "^2.3.3",
"globals": "^15.14.0",
"typescript-eslint": "^8.20.0"
},
"devDependencies": {
Expand Down
4 changes: 0 additions & 4 deletions tooling/eslint/react.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import reactPlugin from 'eslint-plugin-react'
import hooksPlugin from 'eslint-plugin-react-hooks'
import globals from 'globals'

/**
* A custom ESLint configuration for libraries that use React.
Expand All @@ -21,8 +20,5 @@ export default [
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
languageOptions: {
globals: { ...globals.serviceworker, ...globals.browser },
},
},
]

0 comments on commit 1210e7d

Please sign in to comment.