|
| 1 | +import path from "path"; |
| 2 | +import { defineConfig } from "astro/config"; |
| 3 | +import mdx from "@astrojs/mdx"; |
| 4 | +import sitemap from "@astrojs/sitemap"; |
| 5 | +import react from "@astrojs/react"; |
| 6 | +import tailwind from "@astrojs/tailwind"; |
| 7 | +import remarkToc from "remark-toc"; |
| 8 | +import rehypeSlug from "rehype-slug"; |
| 9 | +import rehypeAutolinkHeadings from "rehype-autolink-headings"; |
| 10 | +import metaTags from "astro-meta-tags"; |
| 11 | +import pagefind from "astro-pagefind"; |
| 12 | +import deleteUnusedImages from "astro-delete-unused-images"; |
| 13 | + |
| 14 | +// https://astro.build/config |
| 15 | +export default defineConfig({ |
| 16 | + vite: { |
| 17 | + define: { |
| 18 | + "process.env.VITE_BUILD_TIME": JSON.stringify(new Date().toISOString()), |
| 19 | + }, |
| 20 | + resolve: { |
| 21 | + alias: { |
| 22 | + "@data": path.resolve("./src/data"), |
| 23 | + "@components": path.resolve("./src/components"), |
| 24 | + "@sections": path.resolve("./src/components/sections"), |
| 25 | + "@layouts": path.resolve("./src/layouts"), |
| 26 | + "@ui": path.resolve("./src/components/ui"), |
| 27 | + "@assets": path.resolve("./src/assets"), |
| 28 | + "@i18n": path.resolve("./src/i18n"), |
| 29 | + "@src": path.resolve("./src"), |
| 30 | + }, |
| 31 | + }, |
| 32 | + }, |
| 33 | + markdown: { |
| 34 | + remarkPlugins: [ |
| 35 | + [ |
| 36 | + remarkToc, |
| 37 | + { |
| 38 | + heading: "contents", |
| 39 | + }, |
| 40 | + ], |
| 41 | + ], |
| 42 | + rehypePlugins: [ |
| 43 | + rehypeSlug, |
| 44 | + [ |
| 45 | + rehypeAutolinkHeadings, |
| 46 | + { |
| 47 | + behavior: "wrap", |
| 48 | + }, |
| 49 | + ], |
| 50 | + ], |
| 51 | + }, |
| 52 | + site: process.env.SITE_URL || "https://ep2025.europython.eu", |
| 53 | + redirects: { |
| 54 | + "/c-api-summit/": "/programme/c-api-summit/", |
| 55 | + "/cfp/": "/programme/cfp/", |
| 56 | + "/planning/": "https://forms.gle/riw6CvML8ck94A4V9", |
| 57 | + "/reviewers/": "https://forms.gle/4GTJjwZ1nHBGetM18", |
| 58 | + "/rust-summit/": "/programme/rust-summit/", |
| 59 | + "/sponsor/": "/sponsorship/sponsor/", |
| 60 | + "/voting/": "/programme/voting/", |
| 61 | + "/wasm-summit/": "/programme/wasm-summit/", |
| 62 | + "/sessions/": "/programme/sessions/", |
| 63 | + }, |
| 64 | + integrations: [ |
| 65 | + mdx(), |
| 66 | + sitemap(), |
| 67 | + react(), |
| 68 | + tailwind({ |
| 69 | + nesting: true, |
| 70 | + }), |
| 71 | + metaTags(), |
| 72 | + pagefind(), |
| 73 | + deleteUnusedImages(), |
| 74 | + ], |
| 75 | + output: "static", |
| 76 | + build: { |
| 77 | + minify: true, |
| 78 | + }, |
| 79 | +<<<<<<< HEAD |
| 80 | + image: { |
| 81 | + experimentalLayout: "responsive", |
| 82 | + }, |
| 83 | + experimental: { |
| 84 | + responsiveImages: true, |
| 85 | +======= |
| 86 | + experimental: { |
| 87 | + svg: true, |
| 88 | +>>>>>>> origin/ep2025 |
| 89 | + }, |
| 90 | +}); |
0 commit comments