mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: support protobuf files in the UI (#9408)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user