Skip to content

Commit a996fa3

Browse files
authored
Serverless-only availability hack (#5431)
1 parent 21acd77 commit a996fa3

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

compiler/src/model/build-model.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ export function compileEndpoints (): Record<string, model.Endpoint> {
8989
}
9090
})
9191
}
92+
93+
// temporary workaround for APIs that are serverless-only
94+
// until we can stop depending on rest-api-spec for availability
95+
if (api === 'project.tags') {
96+
delete map[api].availability.stack
97+
}
98+
9299
if (typeof spec.feature_flag === 'string') {
93100
map[api].availability.stack.featureFlag = spec.feature_flag
94101
}

output/schema/schema.json

Lines changed: 1 addition & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)