summaryrefslogtreecommitdiff
path: root/packages/integrations
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-07-07 20:04:18 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-07-07 20:04:18 +0000
commit6fd9f4a1601424f054985611a716123c272429c3 (patch)
tree7b19964956b7eabff10dc84f8a041a5d8864d7d6 /packages/integrations
parent9807e4dc22355f0b3b2ff65b0724a95af8e9702d (diff)
downloadastro-6fd9f4a1601424f054985611a716123c272429c3.tar.gz
astro-6fd9f4a1601424f054985611a716123c272429c3.tar.zst
astro-6fd9f4a1601424f054985611a716123c272429c3.zip
[ci] format
Diffstat (limited to 'packages/integrations')
-rw-r--r--packages/integrations/prefetch/README.md18
1 files changed, 10 insertions, 8 deletions
diff --git a/packages/integrations/prefetch/README.md b/packages/integrations/prefetch/README.md
index 9a061fc2a..6502265ec 100644
--- a/packages/integrations/prefetch/README.md
+++ b/packages/integrations/prefetch/README.md
@@ -86,7 +86,7 @@ export default defineConfig({
By default, the prefetch script also searches the page for any links that include a `rel="prefetch-intent"` attribute, ex: `<a rel="prefetch-intent" />`. This behavior can be changed in your `astro.config.*` file to use a custom query selector when finding prefetch-intent links.
-__`astro.config.mjs`__
+**`astro.config.mjs`**
```js
import { defineConfig } from 'astro/config';
@@ -94,13 +94,15 @@ import prefetch from '@astrojs/prefetch';
export default defineConfig({
// ...
- integrations: [prefetch({
- // Only prefetch links with an href that begins with `/products` or `/coupons`
- intentSelector: ["a[href^='/products']", "a[href^='/coupons']"]
-
- // Use a string to prefetch a single selector
- // intentSelector: "a[href^='/products']"
- })],
+ integrations: [
+ prefetch({
+ // Only prefetch links with an href that begins with `/products` or `/coupons`
+ intentSelector: ["a[href^='/products']", "a[href^='/coupons']"],
+
+ // Use a string to prefetch a single selector
+ // intentSelector: "a[href^='/products']"
+ }),
+ ],
});
```