Skip to content

Commit

Permalink
feat: add pwa support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfriesen committed Nov 12, 2024
1 parent 10f429e commit 835c352
Show file tree
Hide file tree
Showing 3 changed files with 2,432 additions and 214 deletions.
18 changes: 18 additions & 0 deletions apps/timer/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,29 @@ export default defineNuxtConfig({
},
modules: [
'@nuxt/eslint',
'@vite-pwa/nuxt',
'@pinia/nuxt',
'@nuxt/ui',
'@nuxt/image',
'nuxt-time',
],
ssr: false,
pwa: {
registerType: 'autoUpdate',
manifest: {
id: 'zeity-pwa',
start_url: '/',
name: 'zeity Time Tracker',
short_name: 'zeity',
description: 'A simple timer app',
theme_color: '#000000',
display: 'standalone',
lang: 'en',
},
devOptions: {
enabled: true,
},
},
icon: {
clientBundle: {
scan: true,
Expand Down
1 change: 1 addition & 0 deletions apps/timer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"@nuxt/eslint": "^0.6.1",
"@nuxt/image": "^1.8.1",
"@nuxt/ui": "next",
"@vite-pwa/nuxt": "^0.10.6",
"nuxt": "^3.14.159",
"nuxt-time": "^1.0.2"
}
Expand Down
Loading

0 comments on commit 835c352

Please sign in to comment.