-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathastro.config.mjs
More file actions
39 lines (33 loc) · 888 Bytes
/
astro.config.mjs
File metadata and controls
39 lines (33 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { defineConfig } from "astro/config";
// https://astro.build/config
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
import partytown from "@astrojs/partytown";
import svelte from '@astrojs/svelte';
// https://astro.build/config
export default defineConfig({
site: "https://cucoders.dev/",
integrations: [
tailwind(),
svelte(),
sitemap({
serialize(item) {
if (/.*cucoders\.dev\/dev\/[\w-]+\/[\w-]/.test(item.url)) {
return undefined;
}
if (/.*empleos\/(\d{4}-\d{2}-\d{2})\/.*/.test(item.url)) {
const date = item.url.split("/")[4];
item.lastmod = new Date(date);
}
return item;
},
}),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
],
});