-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
55 lines (54 loc) · 1.35 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { sentryVitePlugin } from "@sentry/vite-plugin";
import { defineConfig } from "vite";
import { nodePolyfills } from "vite-plugin-node-polyfills";
import { VitePWA } from "vite-plugin-pwa";
import react from "@vitejs/plugin-react";
import legacy from "@vitejs/plugin-legacy";
export default defineConfig({
build: {
outDir: "nginx/dist",
sourcemap: true,
},
base: "https://pssdconnect.org",
plugins: [
nodePolyfills(),
react(),
VitePWA({
strategies: "injectManifest",
injectRegister: null,
registerType: "autoUpdate",
devOptions: {
enabled: true,
type: "module",
},
manifest: {
name: "PSSD Connect",
short_name: "PSSD Connect",
theme_color: "#ffffff",
display: "standalone",
background_color: "#ffffff",
orientation: "portrait",
icons: [
{
purpose: "maskable",
sizes: "512x512",
src: "icon512_maskable.png",
type: "image/png",
},
{
purpose: "any",
sizes: "512x512",
src: "icon512_rounded.png",
type: "image/png",
},
],
},
}),
sentryVitePlugin({
org: "pssd-network",
project: "pssd-connect",
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
legacy(),
],
});