chore: add turbo resolveAlias mock alias to hide webpack warnings (#6676)

This commit is contained in:
Paul
2024-06-07 13:23:35 -04:00
committed by GitHub
parent e4a90294ea
commit 8ec836737e

View File

@@ -28,6 +28,13 @@ export const withPayload = (nextConfig = {}) => {
'libsql', 'libsql',
], ],
}, },
turbo: {
...(nextConfig?.experimental?.turbo || {}),
resolveAlias: {
...(nextConfig?.experimental?.turbo?.resolveAlias || {}),
'payload-mock-package': 'payload-mock-package',
},
},
}, },
headers: async () => { headers: async () => {
const headersFromConfig = 'headers' in nextConfig ? await nextConfig.headers() : [] const headersFromConfig = 'headers' in nextConfig ? await nextConfig.headers() : []