with Cannot read properties of undefined (reading 'nextConfig')
To recreate this issue, update next to the latest version and run the tests, all fail with this error.
NextServer provides the getServer() method which returns a promise that returns the server. I changed it to use this function instead of app.server and fortunately this is also compatible with 13.0.0, the version the tests were previously running on.
fastify-nextjs is not working for next@13.4 because it breaks when trying to access
with
Cannot read properties of undefined (reading 'nextConfig')
To recreate this issue, update next to the latest version and run the tests, all fail with this error.
NextServer provides the
getServer()
method which returns a promise that returns the server. I changed it to use this function instead ofapp.server
and fortunately this is also compatible with 13.0.0, the version the tests were previously running on.Tests are now passing with 13.0 and 13.4
Checklist
npm run test
andnpm run benchmark