From 5d29f4d0af6f6686c23dd45c864ad2346e291103 Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sat, 17 Aug 2024 12:31:02 +0200 Subject: [PATCH] feat: show types of options on hover --- astro.config.mjs | 9 ++++----- index.js | 25 ++++++++++++------------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 9a33df9..e1acfab 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,14 +3,13 @@ import node from "@astrojs/node"; import serviceWorker from "./index.js"; export default defineConfig({ - // output: "server", - // adapter: node({ - // mode: "middleware" - // }), + output: "server", + adapter: node({ + mode: "middleware" + }), site: 'https://ayo.ayco.io', integrations: [ serviceWorker({ - path: "./example_sw.js", assetCachePrefix: 'cozy-reader', customRoutes: [ '/threads' diff --git a/index.js b/index.js index b7da809..001dda8 100644 --- a/index.js +++ b/index.js @@ -13,21 +13,20 @@ const ASTROSW = 'astro-sw'; /** * @typedef {import('astro').AstroIntegration} AstroIntegration * @typedef {import('esbuild').BuildOptions} BuildOptions - * @typedef {{ - * path: string, - * assetCachePrefix?: string, - * assetCacheVersionID?: string, - * customRoutes?: Array, - * excludeRoutes?: Array