Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/core/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const nextConfig = {
},
// TODO: We won't need to enable this experimental feature when migrating to Next.js 13
experimental: {
instrumentationHook: true,
scrollRestoration: true,
/*
* The FastStore Discovery CLI will update this value to match the path where the
Expand Down
2 changes: 2 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
"graphql": "^15.6.0",
"include-media": "^1.4.10",
"next": "^13.5.9",
"next-logger": "^5.0.1",
"next-seo": "^6.6.0",
"pino": "^9.7.0",
"postcss": "^8.4.4",
"prettier": "^2.2.0",
"react": "^18.2.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/src/instrumentation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export async function register() {
if (process.env.NEXT_RUNTIME === 'nodejs') {
await require('pino')
await require('next-logger')
}
}
Loading
Loading