This commit is contained in:
wuls 2023-05-24 14:22:00 +08:00 committed by Nate Moore
parent f346ae2827
commit ae8c22cfb2

View file

@ -125,7 +125,7 @@ export async function loadFixture(inlineConfig) {
const { astroConfig: config } = await resolveConfig(inlineConfig, 'dev');
const resolveUrl = (url) =>
`http://${config.server.host || 'localhost'}:${config.server.port}${url.replace(/^\/?/, '/')}`;
`http://${config.server.host || '127.0.0.1'}:${config.server.port}${url.replace(/^\/?/, '/')}`;
// A map of files that have been edited.
let fileEdits = new Map();