Instead of modifying the configuration, I simply created a pages/[...catchAll].vue page that intercepts all undefined pages.
pages/[...catchAll].vue