mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Add ID for manifest
This commit is contained in:
parent
ddb64e3022
commit
79aaa04af3
2 changed files with 7 additions and 2 deletions
1
.env
1
.env
|
@ -1,2 +1,3 @@
|
|||
VITE_CLIENT_NAME=Phanpy
|
||||
VITE_CLIENT_ID=social.phanpy
|
||||
VITE_WEBSITE=https://phanpy.social
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue