From 5df426a86368215316c925e3bf28dea8ce28d4a4 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 21 Oct 2025 21:57:33 +0200 Subject: [PATCH] fix(pwa): include share_target in build manifest via vite-plugin-pwa --- vite.config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 450a690f..4ec6a530 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -114,6 +114,17 @@ export default defineConfig({ background_color: '#0b1220', orientation: 'any', categories: ['productivity', 'social', 'utilities'], + // Web Share Target configuration so the installed PWA shows up in the system share sheet + share_target: { + action: '/share-target', + method: 'POST', + enctype: 'multipart/form-data', + params: { + title: 'title', + text: 'text', + url: 'link' + } + }, icons: [ { src: '/icon-192.png', sizes: '192x192', type: 'image/png' }, { src: '/icon-512.png', sizes: '512x512', type: 'image/png' },