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',