After discussion it was decided instead of rewriting `next/config` and `next/head` imports to `next-server/config` and `next-server/head` we should just allow importing them as `next/config` and `next/head` Fixes: #6187
It's not needed since we use react-error-overlay for webpack errors.