[READ-ONLY] Mirror of https://github.com/danielroe/building-a-pwa-with-nuxt. building-a-pwa-with-nuxt.vercel.app
0

Configure Feed

Select the types of activity you want to include in your feed.

building-a-pwa-with-nuxt / nuxt.config.js
917 B 43 lines
1export default { 2 // Auto import components: https://go.nuxtjs.dev/config-components 3 components: true, 4 5 css: ['~/assets/main.css'], 6 7 // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules 8 buildModules: ['@nuxtjs/pwa'], 9 10 plugins: ['~/plugins/analytics.client.js'], 11 12 serverMiddleware: [ 13 { 14 path: '/api/slow', 15 handler: '~/api/slow', 16 }, 17 ], 18 19 pwa: { 20 meta: { 21 name: 'Building a PWA with Nuxt', 22 description: 23 "We're building a PWA with Nuxt at the eCommerce Tech Summit!", 24 theme_color: '#00DC82', 25 }, 26 manifest: { 27 name: 'Building a PWA with Nuxt', 28 short_name: 'Nuxt PWA', 29 }, 30 workbox: { 31 // enabled: true, 32 // config: { 33 // debug: true, 34 // }, 35 runtimeCaching: [ 36 { 37 urlPattern: '/api/.*', 38 handler: 'StaleWhileRevalidate', 39 }, 40 ], 41 }, 42 }, 43}