Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 47 additions & 54 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,65 +1,58 @@
import path from 'path';
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';

// import { VitePWA } from 'vite-plugin-pwa';

// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
scope: '/',
workbox: {
cleanupOutdatedCaches: true,
runtimeCaching: [
{
urlPattern: /^https?.*/,
handler: 'NetworkFirst',
},
],
skipWaiting: true,
clientsClaim: true,
},
manifest: {
orientation: 'any',
display: 'standalone',
lang: 'en-US',
name: 'NeuralLift AI',
short_name: 'NeuralLift',
start_url: '/',
description: '24/7 Customer Support Powered by AI',
background_color: '#ffffff',
theme_color: '#ffffff',
icons: [
{
src: 'pwa-64x64.png',
sizes: '64x64',
type: 'image/png',
},
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'maskable-icon-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
injectRegister: 'auto',
devOptions: {
enabled: true,
},
}),
// VitePWA({
// registerType: 'autoUpdate',
// scope: '/',
// workbox: {
// cleanupOutdatedCaches: true,
// },
// manifest: {
// orientation: 'any',
// display: 'standalone',
// lang: 'en-US',
// name: 'NeuralLift AI',
// short_name: 'NeuralLift',
// start_url: '/',
// description: '24/7 Customer Support Powered by AI',
// background_color: '#ffffff',
// theme_color: '#ffffff',
// icons: [
// {
// src: 'pwa-64x64.png',
// sizes: '64x64',
// type: 'image/png',
// },
// {
// src: 'pwa-192x192.png',
// sizes: '192x192',
// type: 'image/png',
// },
// {
// src: 'pwa-512x512.png',
// sizes: '512x512',
// type: 'image/png',
// },
// {
// src: 'maskable-icon-512x512.png',
// sizes: '512x512',
// type: 'image/png',
// purpose: 'maskable',
// },
// ],
// },
// injectRegister: 'auto',
// devOptions: {
// enabled: true,
// },
// }),
],
resolve: {
alias: {
Expand Down
Loading