diff --git a/astro.config.ts b/astro.config.ts index 8a099dc..d707470 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,32 +1,31 @@ -import { defineConfig } from 'astro/config' -import tailwind from '@astrojs/tailwind' -import deno from '@astrojs/deno' -import robotsTxt from 'astro-robots-txt' -import preact from '@astrojs/preact' -import pageInsight from 'astro-page-insight' -import sitemap from '@astrojs/sitemap' -import compress from 'astro-compress' -import { VitePWA } from 'vite-plugin-pwa' -import { manifest } from './src/utils/seoConfig' - -import mdx from '@astrojs/mdx' +import { defineConfig } from 'astro/config'; +import tailwind from '@astrojs/tailwind'; +import deno from '@astrojs/deno'; +import robotsTxt from 'astro-robots-txt'; +import preact from '@astrojs/preact'; +import pageInsight from 'astro-page-insight'; +import sitemap from '@astrojs/sitemap'; +import compress from 'astro-compress'; +import { VitePWA } from 'vite-plugin-pwa'; +import { manifest } from './src/utils/seoConfig'; +import mdx from '@astrojs/mdx'; // https://astro.build/config export default defineConfig({ + adapter: deno(), integrations: [ tailwind(), robotsTxt(), preact(), pageInsight(), sitemap({ - filter: (page) => - page !== 'https://jamerrq.deno.dev/board/' && - page !== 'https://jamerrq.deno.dev/es/board/' + filter: page => + page !== 'https://jamerrq.deno.dev/board/' && + page !== 'https://jamerrq.deno.dev/es/board/' }), - compress(), - mdx() + mdx(), + compress() ], - adapter: deno(), output: 'server', i18n: { locales: ['en', 'es'], @@ -44,20 +43,16 @@ export default defineConfig({ // ssr: { // external:[] // }, - plugins: [ - VitePWA({ - registerType: 'autoUpdate', - manifest, - workbox: { - globDirectory: 'dist/client', - globPatterns: [ - '**/*.{js,css,svg,png,jpg,jpeg,gif,webp,woff,woff2,ttf,eot,ico}' - ], - // Don't fallback on document based (e.g. `/some-page`) requests - // This removes an errant console.log message from showing up. - navigateFallback: null - } - }) - ] + plugins: [VitePWA({ + registerType: 'autoUpdate', + manifest, + workbox: { + globDirectory: 'dist/client', + globPatterns: ['**/*.{js,css,svg,png,jpg,jpeg,gif,webp,woff,woff2,ttf,eot,ico}'], + // Don't fallback on document based (e.g. `/some-page`) requests + // This removes an errant console.log message from showing up. + navigateFallback: null + } + })] } -}) +}); diff --git a/bun.lockb b/bun.lockb index eb4fff9..10fa58a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 78de56c..9017176 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "@astrojs/check": "^0.3.4", "@astrojs/deno": "^5.0.1", "@astrojs/mdx": "^2.2.0", + "@astrojs/partytown": "^2.0.4", "@astrojs/preact": "^3.1.0", "@astrojs/prism": "^3.0.0", "@astrojs/sitemap": "^3.1.1", @@ -16,6 +17,7 @@ "astro-page-insight": "^0.4.1", "astro-robots-txt": "^1.0.0", "astro-seo": "^0.8.3", + "astro-service-worker": "^0.1.2", "preact": "^10.19.3", "sharp": "^0.33.2", "simple-icons": "^11.1.0", diff --git a/src/components/badges/badge.astro b/src/components/badges/badge.astro index dec6938..45cd7c1 100644 --- a/src/components/badges/badge.astro +++ b/src/components/badges/badge.astro @@ -1,4 +1,4 @@ -