feat: add prefetch for pagination pages

This commit is contained in:
Stefan Imhoff
2023-06-10 19:25:36 +02:00
parent fd60e171ce
commit bb32c6494c
4 changed files with 32 additions and 19 deletions

View File

@@ -3,24 +3,22 @@ import preact from '@astrojs/preact';
import tailwind from '@astrojs/tailwind';
import { astroImageTools } from 'astro-imagetools';
import { remarkReadingTime, remarkWidont } from './src/utils';
import { defineConfig } from 'astro/config';
import prefetch from "@astrojs/prefetch";
// https://astro.build/config
export default defineConfig({
markdown: {
shikiConfig: {
theme: 'nord',
langs: [],
wrap: true,
},
},
integrations: [
mdx({
remarkPlugins: [remarkReadingTime, remarkWidont],
}),
tailwind(),
preact({ compat: true }),
astroImageTools,
],
});
markdown: {
shikiConfig: {
theme: 'nord',
langs: [],
wrap: true
}
},
integrations: [mdx({
remarkPlugins: [remarkReadingTime, remarkWidont]
}), tailwind(), preact({
compat: true
}), astroImageTools, prefetch()]
});