Blob
Save uploads and other files from your server, then read or serve them on any host.
nuxt.config.ts
export default defineNuxtConfig({
modules: ['vite-hub/nuxt'],
vitehub: {
host: 'node',
// On Node, files are saved in .vitehub/data/blob
blob: true,
},
})Deploy on
Node / Docker: fs / S3
Uploads straight to storage
Set
direct: true so the browser sends the file to R2, S3, or Vercel Blob, past the host's request size limit.Copy a file
blob.copy() copies a file with its content type and metadata on the server where the provider supports it.