You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -233,16 +233,16 @@ export async function validateConfig(
process.exit(1);
}
letoldConfig=false;
letlegacyConfigKey: string|undefined;
for(constkeyofObject.keys(userConfig)){
if(LEGACY_ASTRO_CONFIG_KEYS.has(key)){
oldConfig=true;
legacyConfigKey=key;
break;
}
}
if(oldConfig){
if(legacyConfigKey){
thrownewError(
`Legacy configuration detected. Please update your configuration to the new format!\nSee https://astro.build/config for more information.`
`Legacy configuration detected: "${legacyConfigKey}".\nPlease update your configuration to the new format!\nSee https://astro.build/config for more information.`