-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
150 lines (145 loc) · 7.01 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
import tailwind from '@astrojs/tailwind';
import jopSoftwarecookieconsent from '@jop-software/astro-cookieconsent';
import react from '@astrojs/react';
import { remarkReadingTime } from './remark-reading-time.mjs';
export default defineConfig({
site: 'https://www.serp-secrets.com',
output: 'server',
adapter: vercel({
webAnalytics: { enabled: false },
isr: { expiration: 60 * 60 * 24 },
}),
trailingSlash: 'always',
markdown: {
remarkPlugins: [remarkReadingTime],
},
redirects: {
'/seo-strategies/': '/categories/seo-strategies/',
'/seo-news/': '/categories/seo-news/',
'/artificial-intelligence/': '/categories/artificial-intelligence/',
'/technical-seo/': '/categories/technical-seo/',
'/technical-seo/advanced-strategies-for-schema-markup-optimization/': '/blog/advanced-strategies-for-schema-markup-optimization/',
'/posts/how-to-use-ai-in-seo-forecasting/': '/blog/how-to-use-ai-in-seo-forecasting/',
'/seo-strategies/how-to-use-ai-in-seo-forecasting/': '/blog/how-to-use-ai-in-seo-forecasting/',
'/technical-seo/understanding-shadow-dom-for-a-optimized-indexing/': '/blog/understanding-shadow-dom-for-a-optimized-indexing/',
'/seo-strategies/seo-in-2024-trends-tips-strategies-guide/': '/blog/seo-in-2024-trends-tips-strategies-guide/',
'/seo-strategies/optimizing-content-for-google-search-generative-experience/': '/blog/optimizing-content-for-google-search-generative-experience/',
'/seo-news/in-depth-analysis-of-googles-march-2024-updates/': '/blog/in-depth-analysis-of-googles-march-2024-updates/',
'/technical-seo/mastering-bert-in-seo-for-better-semantic-insight/': '/blog/mastering-bert-in-seo-for-better-semantic-insight/',
'/seo-strategies/training-search-engines-the-next-evolution-of-seo/': '/blog/training-search-engines-the-next-evolution-of-seo/',
'/seo-news/seo-2025-upcoming-changes-and-how-to-adapt/': '/blog/seo-2025-upcoming-changes-and-how-to-adapt/',
'/artificial-intelligence/the-future-of-seo-if-chatgpt-kills-search-engines/': '/blog/the-future-of-seo-if-chatgpt-kills-search-engines/',
'/seo-news/the-future-of-seo-navigating-a-world-where-chatgpt-reigns-supreme/': '/blog/the-future-of-seo-navigating-a-world-where-chatgpt-reigns-supreme/',
'/blog/technical-seo/advanced-strategies-for-schema-markup-optimization/': '/blog/advanced-strategies-for-schema-markup-optimization/',
'/blog/posts/how-to-use-ai-in-seo-forecasting/': '/blog/how-to-use-ai-in-seo-forecasting/',
'/blog/seo-strategies/how-to-use-ai-in-seo-forecasting/': '/blog/how-to-use-ai-in-seo-forecasting/',
'/blog/technical-seo/understanding-shadow-dom-for-a-optimized-indexing/': '/blog/understanding-shadow-dom-for-a-optimized-indexing/',
'/blog/seo-strategies/seo-in-2024-trends-tips-strategies-guide/': '/blog/seo-in-2024-trends-tips-strategies-guide/',
'/blog/seo-strategies/optimizing-content-for-google-search-generative-experience/': '/blog/optimizing-content-for-google-search-generative-experience/',
'/blog/seo-news/in-depth-analysis-of-googles-march-2024-updates/': '/blog/in-depth-analysis-of-googles-march-2024-updates/',
'/blog/technical-seo/mastering-bert-in-seo-for-better-semantic-insight/': '/blog/mastering-bert-in-seo-for-better-semantic-insight/',
'/blog/seo-strategies/training-search-engines-the-next-evolution-of-seo/': '/blog/training-search-engines-the-next-evolution-of-seo/',
'/blog/seo-news/seo-2025-upcoming-changes-and-how-to-adapt/': '/blog/seo-2025-upcoming-changes-and-how-to-adapt/',
'/blog/artificial-intelligence/the-future-of-seo-if-chatgpt-kills-search-engines/': '/blog/the-future-of-seo-if-chatgpt-kills-search-engines/',
'/blog/seo-news/the-future-of-seo-navigating-a-world-where-chatgpt-reigns-supreme/': '/blog/the-future-of-seo-navigating-a-world-where-chatgpt-reigns-supreme/',
},
integrations: [
tailwind({ applyBaseStyles: false }),
react(),
jopSoftwarecookieconsent({
mode: 'opt-in',
autoShow: true,
revision: 1,
disablePageInteraction: false,
lazyHtmlGeneration: true,
cookie: {
name: 'cc_cookie',
expiresAfterDays: acceptType => acceptType === 'all' ? 365 : 182,
sameSite: 'Lax',
useLocalStorage: false
},
guiOptions: {
consentModal: {
layout: "box inline",
position: "bottom left",
equalWeightButtons: true,
flipButtons: false
},
preferencesModal: {
layout: "box",
position: "right",
equalWeightButtons: true,
flipButtons: false
}
},
categories: {
necessary: {
enabled: true,
readOnly: true
},
functionality: {
enabled: false,
readOnly: false
},
analytics: {
enabled: false,
readOnly: false,
autoClear: {
cookies: [
{
name: /^(_ga|_gid|_ga_.*)/,
domain: 'serp-secrets.com'
}
]
}
}
},
language: {
default: "en",
autoDetect: "browser",
translations: {
en: {
consentModal: {
title: "We use cookies!",
description: "We use cookies to enhance your browsing experience and analyze site traffic.",
acceptAllBtn: "Accept all",
acceptNecessaryBtn: "Reject all",
showPreferencesBtn: "Manage preferences",
closeIconLabel: "Close modal",
footer: '<a href="/privacy-policy/" class="cc-link">Privacy Policy</a>\n<a href="/cookie-policy/" class="cc-link">Cookie Policy</a>'
},
preferencesModal: {
title: "Cookie Preferences",
acceptAllBtn: "Accept all",
acceptNecessaryBtn: "Reject all",
savePreferencesBtn: "Save preferences",
closeIconLabel: "Close modal",
sections: [
{
title: "Cookie Usage",
description: "We use cookies to optimize your experience on our website."
},
{
title: "Necessary Cookies",
description: "These cookies are essential for the website to function properly.",
linkedCategory: "necessary"
},
{
title: "Analytics Cookies",
description: "These cookies help us analyze and improve our site usage.",
linkedCategory: "analytics"
},
{
title: "More information",
description: 'For more information about how we process your data and your privacy rights, please read our <a href="/privacy-policy/" class="cc-link">Privacy Policy</a> and <a href="/cookie-policy/" class="cc-link">Cookie Policy</a>.'
}
]
}
}
}
}
})
],
});