-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
46 lines (45 loc) · 1005 Bytes
/
astro.config.mjs
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
40
41
42
43
44
45
46
import { defineConfig, passthroughImageService } from 'astro/config';
import cloudflare from "@astrojs/cloudflare";
import mdx from "@astrojs/mdx";
import solidJs from "@astrojs/solid-js";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
export default defineConfig({
site: "https://www.limwa.pt",
integrations: [
mdx(),
solidJs(),
tailwind(),
sitemap(),
robotsTxt({
policy: [
{
userAgent: "*",
allow: "/",
disallow: [
// Cloudflare-specific endpoints that should not be indexed
"/cdn-cgi/",
],
}
],
}),
],
output: "hybrid",
adapter: cloudflare({
runtime: {
mode: "local",
type: "pages",
},
}),
image: {
service: passthroughImageService(),
},
redirects: {
"/CV.pdf": {
status: 302,
destination: "/resume.pdf",
},
},
});