mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-30 04:53:31 +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_NAME=Phanpy
|
||||||
|
VITE_CLIENT_ID=social.phanpy
|
||||||
VITE_WEBSITE=https://phanpy.social
|
VITE_WEBSITE=https://phanpy.social
|
|
@ -9,8 +9,11 @@ import { VitePWA } from 'vite-plugin-pwa';
|
||||||
import removeConsole from 'vite-plugin-remove-console';
|
import removeConsole from 'vite-plugin-remove-console';
|
||||||
|
|
||||||
const { NODE_ENV } = process.env;
|
const { NODE_ENV } = process.env;
|
||||||
const { VITE_CLIENT_NAME: CLIENT_NAME, VITE_APP_ERROR_LOGGING: ERROR_LOGGING } =
|
const {
|
||||||
loadEnv('production', process.cwd());
|
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 now = new Date();
|
||||||
const commitHash = execSync('git rev-parse --short HEAD').toString().trim();
|
const commitHash = execSync('git rev-parse --short HEAD').toString().trim();
|
||||||
|
@ -51,6 +54,7 @@ export default defineConfig({
|
||||||
]),
|
]),
|
||||||
VitePWA({
|
VitePWA({
|
||||||
manifest: {
|
manifest: {
|
||||||
|
id: CLIENT_ID,
|
||||||
name: CLIENT_NAME,
|
name: CLIENT_NAME,
|
||||||
short_name: CLIENT_NAME,
|
short_name: CLIENT_NAME,
|
||||||
description: 'Minimalistic opinionated Mastodon web client',
|
description: 'Minimalistic opinionated Mastodon web client',
|
||||||
|
|
Loading…
Add table
Reference in a new issue