fix: revert config loading try/catch
This commit is contained in:
parent
ad518106a3
commit
a199bf3d2e
1 changed files with 1 additions and 4 deletions
|
@ -132,10 +132,7 @@ export async function loadConfig(options: LoadConfigOptions): Promise<AstroConfi
|
|||
}
|
||||
// Automatically load config file using Proload
|
||||
// If `userConfigPath` is `undefined`, Proload will search for `astro.config.[cm]?[jt]s`
|
||||
let config;
|
||||
try {
|
||||
config = await load('astro', { mustExist: false, cwd: root, filePath: userConfigPath });
|
||||
} catch (e) {}
|
||||
const config = await load('astro', { mustExist: false, cwd: root, filePath: userConfigPath });
|
||||
if (config) {
|
||||
userConfig = config.value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue