-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nextjs
SDK Version
7.54.0
Framework Version
7.54.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: SENTRY_DSN,
tracesSampleRate: 1.0,
});
Steps to Reproduce
Clone the following repository: https://github.com/klaasman/sentry-nextjs-font-inlining-bug
npm installnpm run build- open
./.next/server/pages/index.html, you will see that the font-loading is inlined (search for@font-face) - now open
next.config.jsand comment out theautoInstrumentServerFunctionsline npm run build- open
./.next/server/pages/index.html, you will see that the font-loading is not inlined anymore (search for@font-face)
Expected Result
I expected next.js font optimization feature to work.
Actual Result
The autoInstrumentServerFunctions somehow disables next.js' font inlining feature. This setting is turned on by default, in this repository it is turned off in the next.config.js file.
Metadata
Metadata
Assignees
Labels
Projects
Status
No status
Status
Waiting for: Community