Compare commits

...

3 Commits

Author SHA1 Message Date
3122f04fa4 refactor: Add pnpm installation step to Vercel deployment workflows
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
Vercel Production Deployment / Deploy-Production (push) Has been cancelled
2025-10-16 13:00:26 +02:00
872d590ff0 refactor: Simplify body tag formatting in RootLayout component 2025-10-16 12:59:02 +02:00
ac52eaf984 refactor: Add @vercel/analytics dependency and integrate Analytics component in layout 2025-10-16 12:57:54 +02:00
5 changed files with 42 additions and 3 deletions

View File

@@ -13,6 +13,8 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Vercel CLI - name: Install Vercel CLI
run: npm install --global vercel@latest run: npm install --global vercel@latest
- name: Install pnpm
run: npm install -g pnpm
- name: Pull Vercel Environment Information - name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts - name: Build Project Artifacts

View File

@@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install pnpm
run: npm install -g pnpm
- name: Install Vercel CLI - name: Install Vercel CLI
run: npm install --global vercel@latest run: npm install --global vercel@latest
- name: Pull Vercel Environment Information - name: Pull Vercel Environment Information

View File

@@ -9,6 +9,7 @@
"lint": "eslint" "lint": "eslint"
}, },
"dependencies": { "dependencies": {
"@vercel/analytics": "^1.5.0",
"bcrypt": "^6.0.0", "bcrypt": "^6.0.0",
"mysql2": "^3.15.2", "mysql2": "^3.15.2",
"next": "15.5.5", "next": "15.5.5",

34
pnpm-lock.yaml generated
View File

@@ -8,6 +8,9 @@ importers:
.: .:
dependencies: dependencies:
'@vercel/analytics':
specifier: ^1.5.0
version: 1.5.0(next@15.5.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)
bcrypt: bcrypt:
specifier: ^6.0.0 specifier: ^6.0.0
version: 6.0.0 version: 6.0.0
@@ -623,6 +626,32 @@ packages:
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
'@vercel/analytics@1.5.0':
resolution: {integrity: sha512-MYsBzfPki4gthY5HnYN7jgInhAZ7Ac1cYDoRWFomwGHWEX7odTEzbtg9kf/QSo7XEsEAqlQugA6gJ2WS2DEa3g==}
peerDependencies:
'@remix-run/react': ^2
'@sveltejs/kit': ^1 || ^2
next: '>= 13'
react: ^18 || ^19 || ^19.0.0-rc
svelte: '>= 4'
vue: ^3
vue-router: ^4
peerDependenciesMeta:
'@remix-run/react':
optional: true
'@sveltejs/kit':
optional: true
next:
optional: true
react:
optional: true
svelte:
optional: true
vue:
optional: true
vue-router:
optional: true
acorn-jsx@5.3.2: acorn-jsx@5.3.2:
resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
peerDependencies: peerDependencies:
@@ -2360,6 +2389,11 @@ snapshots:
'@unrs/resolver-binding-win32-x64-msvc@1.11.1': '@unrs/resolver-binding-win32-x64-msvc@1.11.1':
optional: true optional: true
'@vercel/analytics@1.5.0(next@15.5.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)':
optionalDependencies:
next: 15.5.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)
react: 19.1.0
acorn-jsx@5.3.2(acorn@8.15.0): acorn-jsx@5.3.2(acorn@8.15.0):
dependencies: dependencies:
acorn: 8.15.0 acorn: 8.15.0

View File

@@ -1,6 +1,7 @@
import type { Metadata } from "next"; import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google"; import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css"; import "./globals.css";
import { Analytics } from "@vercel/analytics/next"
const geistSans = Geist({ const geistSans = Geist({
variable: "--font-geist-sans", variable: "--font-geist-sans",
@@ -24,11 +25,10 @@ export default function RootLayout({
}>) { }>) {
return ( return (
<html lang="en"> <html lang="en">
<body <body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children} {children}
</body> </body>
<Analytics />
</html> </html>
); );
} }