diff --git a/components/storage/FileUploadInput.vue b/components/storage/FileUploadInput.vue index df5e8f5b..3218aeae 100644 --- a/components/storage/FileUploadInput.vue +++ b/components/storage/FileUploadInput.vue @@ -56,7 +56,13 @@ export default { methods: { async fallbackUpload() { const thisAppUrl = window.location.origin; - const fetcherService = thisAppUrl + "/.netlify/functions/imageUploaderFallback"; + + let fetcherService; + if (this.$config.fileUploadTokenService === "netlify") { + fetcherService = thisAppUrl + "/.netlify/functions/imageUploaderFallback"; + } else if (this.$config.fileUploadTokenService === "vercel") { + fetcherService = thisAppUrl + "/api/imageUploaderFallback"; + } const resp = await $fetch(fetcherService).catch((error) => error.data);