From 79aaa04af3179b69a20605732b7eb740b41cc761 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 24 May 2023 17:18:22 +0800 Subject: [PATCH] Add ID for manifest --- .env | 1 + vite.config.js | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 9a845db8..787c8d7e 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ VITE_CLIENT_NAME=Phanpy +VITE_CLIENT_ID=social.phanpy VITE_WEBSITE=https://phanpy.social \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index aecbde7f..4eaec943 100644 --- a/vite.config.js +++ b/vite.config.js @@ -9,8 +9,11 @@ import { VitePWA } from 'vite-plugin-pwa'; import removeConsole from 'vite-plugin-remove-console'; const { NODE_ENV } = process.env; -const { VITE_CLIENT_NAME: CLIENT_NAME, VITE_APP_ERROR_LOGGING: ERROR_LOGGING } = - loadEnv('production', process.cwd()); +const { + VITE_CLIENT_NAME: CLIENT_NAME, + VITE_CLIENT_ID: CLIENT_ID, + VITE_APP_ERROR_LOGGING: ERROR_LOGGING, +} = loadEnv('production', process.cwd()); const now = new Date(); const commitHash = execSync('git rev-parse --short HEAD').toString().trim(); @@ -51,6 +54,7 @@ export default defineConfig({ ]), VitePWA({ manifest: { + id: CLIENT_ID, name: CLIENT_NAME, short_name: CLIENT_NAME, description: 'Minimalistic opinionated Mastodon web client',