@@ -10,6 +10,7 @@ import rehypeAutolinkHeadings from "rehype-autolink-headings";
1010import metaTags from "astro-meta-tags" ;
1111import pagefind from "astro-pagefind" ;
1212import deleteUnusedImages from "astro-delete-unused-images" ;
13+ import preload from "astro-preload" ;
1314
1415// https://astro.build/config
1516export default defineConfig ( {
@@ -19,6 +20,7 @@ export default defineConfig({
1920 } ,
2021 resolve : {
2122 alias : {
23+ "@utils" : path . resolve ( "./src/utils" ) ,
2224 "@data" : path . resolve ( "./src/data" ) ,
2325 "@components" : path . resolve ( "./src/components" ) ,
2426 "@sections" : path . resolve ( "./src/components/sections" ) ,
@@ -51,17 +53,11 @@ export default defineConfig({
5153 } ,
5254 site : process . env . SITE_URL || "https://ep2025.europython.eu" ,
5355 redirects : {
54- "/c-api-summit/" : "/programme/c-api-summit/" ,
55- "/cfp/" : "/programme/cfp/" ,
5656 "/planning/" : "https://forms.gle/riw6CvML8ck94A4V9" ,
5757 "/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/" ,
6358 } ,
6459 integrations : [
60+ preload ( ) ,
6561 mdx ( ) ,
6662 sitemap ( ) ,
6763 react ( ) ,
@@ -76,6 +72,10 @@ export default defineConfig({
7672 build : {
7773 minify : true ,
7874 } ,
75+ image : {
76+ remotePatterns : [ { protocol : "https" } ] ,
77+ domains : [ "programme.europython.eu" , "placehold.co" ] ,
78+ } ,
7979 experimental : {
8080 svg : true ,
8181 } ,
0 commit comments