Skip to content

Commit

Permalink
migrate to built-in prefetch feature
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Mar 19, 2024
1 parent 098ee35 commit 0379896
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 23 deletions.
11 changes: 4 additions & 7 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from "astro/config";
import prefetch from "@astrojs/prefetch";
import getRedirects from "./src/lib/getRedirects";

import sitemap from "@astrojs/sitemap";
Expand All @@ -15,10 +14,8 @@ export default defineConfig({
console.error(e);
throw e;
}),
integrations: [
prefetch({
selector: "a",
}),
sitemap(),
],
prefetch: {
prefetchAll: true,
},
integrations: [sitemap()],
});
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"puppeteer": "tsx ./scripts/puppeteer.ts"
},
"dependencies": {
"@astrojs/prefetch": "^0.4.1",
"@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.1",
"@fontsource-variable/lora": "^5.0.9",
Expand Down
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0379896

Please sign in to comment.