feat: integrate PWA support using next-pwa; update configuration in next.config.ts, add service worker files to .gitignore, and include manifest in layout.tsx
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { OfflineBanner } from '@/components/OfflineBanner'
|
||||
import { ThemeProviders, Toaster } from '@ciphera-net/ui'
|
||||
import { AuthProvider } from '@/lib/auth/context'
|
||||
import type { Metadata, Viewport } from 'next'
|
||||
@@ -31,6 +32,7 @@ export const metadata: Metadata = {
|
||||
shortcut: '/favicon.ico',
|
||||
apple: '/pulse_icon_no_margins.png',
|
||||
},
|
||||
manifest: '/manifest.json',
|
||||
robots: {
|
||||
index: true,
|
||||
follow: true,
|
||||
@@ -45,6 +47,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en" className={plusJakartaSans.variable} suppressHydrationWarning>
|
||||
<body className="antialiased min-h-screen flex flex-col bg-white dark:bg-neutral-950 text-neutral-900 dark:text-neutral-50">
|
||||
<OfflineBanner />
|
||||
<ThemeProviders>
|
||||
<AuthProvider>
|
||||
<LayoutContent>{children}</LayoutContent>
|
||||
|
||||
Reference in New Issue
Block a user