Add storage_use_date_path for flat vs date-key storage layout and emit basename-only public URLs when hide-folder is enabled. Block image paths on the site host when domain separation is active so only the image host serves files. Update settings UI, i18n, tests, and deployment docs.
8 lines
315 B
TypeScript
8 lines
315 B
TypeScript
import { shouldBlockImageHostRequest, shouldBlockSiteHostImageRequest } from '../utils/host-isolation'
|
|
|
|
export default defineEventHandler((event) => {
|
|
if (shouldBlockImageHostRequest(event) || shouldBlockSiteHostImageRequest(event)) {
|
|
throw createError({ statusCode: 404, statusMessage: 'Not Found' })
|
|
}
|
|
})
|