chore: support protobuf files in the UI (#9408)

This commit is contained in:
Bruno Quaresma
2023-08-29 17:26:23 +00:00
committed by GitHub
parent 605d2b20e2
commit fc4683d8b3
+1 -1
View File
@@ -23,7 +23,7 @@ export const getTemplateVersionFiles = async (
return files
}
export const allowedExtensions = ["tf", "md", "Dockerfile"]
export const allowedExtensions = ["tf", "md", "Dockerfile", "protobuf"]
export const isAllowedFile = (name: string) => {
return allowedExtensions.some((ext) => name.endsWith(ext))