Files
pole-book/client/astro.config.mjs
2025-06-23 23:36:51 +02:00

62 lines
1.3 KiB
JavaScript

// @ts-check
import AstroPWA from '@vite-pwa/astro'
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
import node from '@astrojs/node';
// https://astro.build/config
export default defineConfig({
integrations: [
AstroPWA({
mode: 'production',
base: '/',
scope: '/',
includeAssets: ['favicon.ico'],
registerType: 'autoUpdate',
manifest: {
name: 'Pole Book',
short_name: 'Pole Book',
theme_color: '#ffffff',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable',
},
],
},
workbox: {
navigateFallback: '/',
globPatterns: ['**/*.{css,js,html,svg,png,ico,txt}'],
},
devOptions: {
enabled: false,
navigateFallbackAllowlist: [/^\/$/],
},
experimental: {
directoryAndTrailingSlashHandler: true,
},
}),
],
output: 'server',
vite: {
plugins: [tailwindcss()]
},
adapter: node({
mode: 'standalone'
})
});