Skip to content

Commit 5c8f433

Browse files
committed
fix: serve fonts folder
1 parent 643cf72 commit 5c8f433

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

backend/cmd/server/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ func main() {
311311

312312
// Serve Nuxt build output directories
313313
router.Static("/_nuxt", filepath.Join(staticPath, "_nuxt"))
314+
router.Static("/_fonts", filepath.Join(staticPath, "_fonts"))
314315
router.Static("/images", filepath.Join(staticPath, "images"))
315316

316317
// Serve root static files

frontend/nuxt.config.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default defineNuxtConfig({
3232
{
3333
rel: 'icon',
3434
href: '/favicon.ico',
35-
sizes: '32x32',
35+
sizes: '48x48',
3636
},
3737
{
3838
rel: 'apple-touch-icon',
@@ -243,7 +243,7 @@ export default defineNuxtConfig({
243243
theme_color: '#E8DFA7',
244244
name: 'Interact',
245245
short_name: 'Interact',
246-
orientation: 'portrait',
246+
display: 'standalone',
247247
icons: [
248248
{
249249
src: 'pwa-64x64.png',
@@ -268,6 +268,21 @@ export default defineNuxtConfig({
268268
purpose: 'maskable',
269269
},
270270
],
271+
shortcuts: [
272+
{
273+
name: 'Your local church',
274+
short_name: 'Local church',
275+
description: 'View your local churches standings',
276+
url: '/standings/local',
277+
icons: [
278+
{
279+
src: 'pwa-192x192.png',
280+
sizes: '192x192',
281+
type: 'image/png',
282+
},
283+
],
284+
},
285+
],
271286
},
272287
},
273288

frontend/pwa-assets.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {
2+
defineConfig,
3+
minimal2023Preset,
4+
} from '@vite-pwa/assets-generator/config'
5+
6+
export default defineConfig({
7+
headLinkOptions: {
8+
preset: '2023',
9+
},
10+
preset: minimal2023Preset,
11+
images: ['public/app-icon.png'],
12+
})

0 commit comments

Comments
 (0)