How to set testUrl in vitest?

I’m testing mocked api calls in my app but all of these calls are now running from http://localhost

In jest there used to be a testUrl configuration I could set to define my test environment url so that all mocked api calls would come from that url instead. How do I do this in Vitest?

In Jest it looked something like that:

const config = {
  testEnvironment: 'jsdom',
  testEnvironmentOptions: {
    html: '<html lang="zh-cmn-Hant"></html>',
    url: 'https://jestjs.io/',
    userAgent: 'Agent/007',
  },
};