1- import path from "path" ;
2- import { fileURLToPath } from "url" ;
3-
4- // https://flaviocopes.com/fix-dirname-not-defined-es-module-scope/
5- const __filename = fileURLToPath ( import . meta. url ) ;
6- const __dirname = path . dirname ( __filename ) ;
7-
81import { defineConfig } from "astro/config" ;
92import styleGuide from "./style-guide/register.js" ;
103
@@ -42,28 +35,23 @@ export default defineConfig({
4235
4336 redirects : {
4437 "/daf/overview/" : "/daf/" ,
38+ // Move old services URLs to new ones.
39+ "/services/escape-room" : "/escape-room/" ,
40+ "/services/evaluations" : "/evaluations/" ,
41+ "/services/globa11y/" : "/globa11y/" ,
42+ "/services/mutua11y/" : "/mutua11y/" ,
43+ "/services/tip-of-the-week" : "/tips/" ,
4544 } ,
4645
4746 vite : {
48- resolve : {
49- alias : {
50- "~bootstrap" : path . resolve ( __dirname , "node_modules/bootstrap" ) ,
51- "~bootstrap-es" : path . resolve (
52- __dirname ,
53- "node_modules/bootstrap/dist/js/bootstrap.esm.min.js" ,
54- ) ,
55- '@' : './src' ,
56- } ,
57- extensions : [ '.js' , '.ts' , '.mjs' ] ,
58- } ,
5947 ssr : {
6048 noExternal : [ "bootstrap" ] ,
6149 } ,
6250 } ,
6351
6452 integrations : [
6553 mdx ( ) ,
66- styleGuide ( ) ,
54+ styleGuide ( ) ,
6755 icon ( {
6856 include : {
6957 // Bootstrap Icons
@@ -73,7 +61,7 @@ export default defineConfig({
7361 // Contact Info
7462 'envelope-at-fill' , 'telephone-fill' , 'geo-alt-fill' ,
7563 // Social Media
76- 'facebook' , 'instagram' , 'linkedin' , 'rss-fill' , 'tiktok' , 'youtube' , ' globe', 'mastodon' , 'twitter' ,
64+ 'facebook' , 'instagram' , 'linkedin' , 'rss-fill' , 'tiktok' , 'globe' , 'mastodon' , 'twitter' ,
7765 // Descriptive
7866 'gift-fill' , 'pencil-fill' , 'people-fill' , 'person-fill' ,
7967 // Additional icons
@@ -84,16 +72,23 @@ export default defineConfig({
8472 cib : [
8573 // Social Media
8674 'facebook' , 'instagram' , 'linkedin' , 'mastodon' , 'twitter' ,
75+ // Streaming
76+ 'apple-podcasts' , 'youtube' ,
8777 // Payment
8878 "cc-paypal" , "cc-stripe" , "paypal" , "stripe" ,
8979 ] ,
80+ 'simple-icons' : [
81+ // Streaming
82+ 'podcastindex'
83+ ] ,
9084 }
9185 } ) ,
9286 sitemap ( {
9387 filter : ( page ) =>
9488 ! page . endsWith ( '/commitment-form/' ) &&
9589 ! page . includes ( '/fixable/' ) &&
96- ! page . includes ( '/services/escape-room/content/' ) ,
90+ ! page . includes ( '/services/escape-room/content/' ) &&
91+ ! page . endsWith ( 'tips/archive/' )
9792 } ) ,
9893 robotsTxt ( {
9994 sitemap : true ,
@@ -115,6 +110,7 @@ export default defineConfig({
115110 '/api/digital-content' ,
116111 '/api/verify-purchase' ,
117112 '/services/escape-room/content/' ,
113+ '/tips/archive/' ,
118114 ] ,
119115 } ,
120116 ]
0 commit comments