You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Payload Local API increase First Load JS size to client chunks #7261
import { Badge } from '@/components/Badge'
import { Background } from '@/components/Background'
import Link from 'next/link'
import React from 'react'
import { getPayloadHMR } from '@payloadcms/next/utilities'
import configPromise from '@payload-config'
const Page = async () => {
const payload = await getPayloadHMR({ config: configPromise })
const pages = await payload.find({
collection: 'pages',
})
...
the rest
Build the project
Build result:
Route (app) Size First Load JS
┌ ○ / 313 B 462 kB
├ ○ /_not-found 903 B 92.9 kB
├ ƒ /admin/[[...segments]] 439 B 541 kB
├ ƒ /api/[...slug] 0 B 0 B
├ ƒ /api/graphql 0 B 0 B
├ ƒ /api/graphql-playground 0 B 0 B
└ ƒ /my-route 0 B 0 B
+ First Load JS shared by all 92 kB
├ chunks/1038-36cab95de5fa964d.js 37.2 kB
├ chunks/2853d6fe-c5264f1434dff8cb.js 51.7 kB
└ other shared chunks (total) 3.1 kB
○ (Static) prerendered as static content
ƒ (Dynamic) server-rendered on demand
Activity
rilrom commentedon Jul 21, 2024
Relates to #6441.
feat!: component paths (#7246)
AlessioGr commentedon Aug 13, 2024
This has been fixed by #7620
github-actions commentedon Sep 6, 2024
This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.