-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
40 lines (36 loc) · 935 Bytes
/
Copy pathastro.config.mjs
File metadata and controls
40 lines (36 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// @ts-check
import { defineConfig } from 'astro/config';
import { VitePWA } from 'vite-plugin-pwa';
import node from '@astrojs/node';
import cloudflare from '@astrojs/cloudflare';
// https://astro.build/config
export default defineConfig({
output: 'server',
vite: {
plugins: [
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'Coruña Bus',
short_name: 'Coruña Bus',
description: 'Buses de A Coruña en tiempo real',
theme_color: '#f44336',
background_color: '#f5f5f7',
display: 'standalone',
icons: [
{
src: 'logo.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable'
}
]
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg}']
}
})
]
},
adapter: cloudflare()
});