diff --git a/packages/wrangler/src/__tests__/dev.test.tsx b/packages/wrangler/src/__tests__/dev.test.tsx index 360d531cb562..8bbf271a7816 100644 --- a/packages/wrangler/src/__tests__/dev.test.tsx +++ b/packages/wrangler/src/__tests__/dev.test.tsx @@ -1571,7 +1571,7 @@ describe("wrangler dev", () => { ).rejects.toThrowErrorMatchingInlineSnapshot( ` [Error: Cannot use Experimental Assets and Legacy Assets in the same Worker. - Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.] + Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.] ` ); }); @@ -1584,7 +1584,7 @@ describe("wrangler dev", () => { ).rejects.toThrowErrorMatchingInlineSnapshot( ` [Error: Cannot use Experimental Assets and Legacy Assets in the same Worker. - Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.] + Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.] ` ); }); @@ -1607,7 +1607,7 @@ describe("wrangler dev", () => { ).rejects.toThrowErrorMatchingInlineSnapshot( ` [Error: Cannot use Experimental Assets and Legacy Assets in the same Worker. - Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.] + Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.] ` ); }); @@ -1626,7 +1626,7 @@ describe("wrangler dev", () => { ).rejects.toThrowErrorMatchingInlineSnapshot( ` [Error: Cannot use Experimental Assets and Legacy Assets in the same Worker. - Please remove either the \`site\` or \`experimental_assets\` field from your configuration file.] + Please remove either the \`legacy_assets\` or \`experimental_assets\` field from your configuration file.] ` ); }); diff --git a/packages/wrangler/src/experimental-assets.ts b/packages/wrangler/src/experimental-assets.ts index 355dcbe0a127..f2d871ee3b3b 100644 --- a/packages/wrangler/src/experimental-assets.ts +++ b/packages/wrangler/src/experimental-assets.ts @@ -394,7 +394,7 @@ export function validateAssetsArgsAndConfig( ) { throw new UserError( "Cannot use Experimental Assets and Legacy Assets in the same Worker.\n" + - "Please remove either the `site` or `experimental_assets` field from your configuration file." + "Please remove either the `legacy_assets` or `experimental_assets` field from your configuration file." ); }