2022-12-31 17:01:40 +04:00
|
|
|
import { defineConfig } from 'astro/config';
|
2023-01-04 17:17:23 +04:00
|
|
|
import { shouldIndexPage } from './src/lib/sitemap';
|
2022-12-31 17:01:40 +04:00
|
|
|
|
|
|
|
|
// https://astro.build/config
|
2023-01-04 17:17:23 +04:00
|
|
|
import tailwind from '@astrojs/tailwind';
|
2023-01-01 18:59:38 +04:00
|
|
|
import rehypeExternalLinks from 'rehype-external-links';
|
2022-12-31 17:01:40 +04:00
|
|
|
|
2023-01-04 17:17:23 +04:00
|
|
|
// https://astro.build/config
|
|
|
|
|
import sitemap from '@astrojs/sitemap';
|
|
|
|
|
|
2022-12-31 17:01:40 +04:00
|
|
|
// https://astro.build/config
|
|
|
|
|
export default defineConfig({
|
2023-01-04 17:17:23 +04:00
|
|
|
site: 'https://roadmap.sh',
|
2023-01-01 18:59:38 +04:00
|
|
|
markdown: {
|
|
|
|
|
rehypePlugins: [
|
2023-01-04 17:17:23 +04:00
|
|
|
[
|
|
|
|
|
rehypeExternalLinks,
|
|
|
|
|
{
|
|
|
|
|
target: '_blank',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
],
|
2023-01-01 18:59:38 +04:00
|
|
|
},
|
2023-01-04 17:17:23 +04:00
|
|
|
integrations: [
|
|
|
|
|
tailwind({
|
|
|
|
|
config: {
|
|
|
|
|
applyBaseStyles: false,
|
|
|
|
|
},
|
|
|
|
|
}),
|
|
|
|
|
sitemap({
|
|
|
|
|
filter: shouldIndexPage,
|
|
|
|
|
}),
|
|
|
|
|
],
|
2022-12-31 17:01:40 +04:00
|
|
|
});
|