INNER CODE UNIT · TypeScript
validateFrameworkTargetSupport
cloudflare/workers-sdk · packages/autoconfig/src/frameworks/index.ts:70
export function validateFrameworkTargetSupport(
framework: Framework,
target: AutoConfigTarget
): void {
if (target !== "cf") {
return;
}
const frameworkInfo = allFrameworksInfos.find(
({ id }) => id === framework.id
);
if (frameworkInfo?.supported !== true || frameworkInfo.supportsCf) {
return;
}
throw new AutoConfigFrameworkConfigurationError(
`cf does not support ${framework.name} projects yet. You can still use Wrangler to develop and deploy this project.`,
{ telemetryMessage: "autoconfig framework unsupported for cf" }