-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathastro.config.mjs
More file actions
73 lines (64 loc) · 2.47 KB
/
astro.config.mjs
File metadata and controls
73 lines (64 loc) · 2.47 KB
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
// @ts-check
import mdx from "@astrojs/mdx";
import { defineConfig } from "astro/config";
import icon from "astro-icon";
import tailwindcss from "@tailwindcss/vite";
import sitemap from "@astrojs/sitemap";
import embeds from "astro-embed/integration";
import { remarkReadingTime } from "./src/utils/remark-reading-time.mjs";
import remarkToc from "remark-toc";
import rehypeExternalLinks from "rehype-external-links";
import netlify from "@astrojs/netlify";
// https://astro.build/config
export default defineConfig({
site:
process.env.NODE_ENV === "development"
? "http://localhost:4321"
: "https://techsquidtv.com",
integrations: [sitemap(), icon(), embeds(), mdx()],
markdown: {
remarkPlugins: [
remarkReadingTime,
[remarkToc, { heading: "Table of Contents", maxDepth: 4, tight: true }],
],
rehypePlugins: [
[
rehypeExternalLinks,
{
target: "_blank",
rel: ["nofollow", "noopener"],
},
],
],
},
redirects: {
"/blog/Choosing_a_standing_desk": "/blog/choosing-a-standing-desk",
"/blog/Chrome_media_keys": "/blog/chrome-media-keys",
"/blog/Ditching_WordPress":
"/blog/ditching-wordpress-for-nuxtjs-and-netlify",
"/blog/Facebook_already_created_Garrys_mod_vr":
"/blog/facebook-already-created-garrys-mod-vr",
"/blog/How_to_Docker_Compose":
"/blog/learning-docker-compose-with-wordpress",
"/blog/How_to_speed_test_your_vps": "/blog/how-to-speed-test-your-vps",
"/blog/Kubernetes_in_10_minutes": "/blog/kubernetes-in-10-minutes",
"/blog/Making_your_own_home_media_server_with_plex_and_Docker-Compose":
"/blog/making-a-home-media-server-with-plex-and-docker-compose",
"/blog/Synology_ds920plus_nas": "/blog/synology-ds920plus-nas",
"/blog/Testing_shell_scripts_with_bats":
"/blog/testing-shell-scripts-with-bats",
"/blog/The_Windows_Ugly_Sweater": "/blog/the-windows-ugly-sweater",
"/blog/What_Is_Docker": "/blog/what-is-docker",
"/blog/Will_We_Ever_Be_Able_To_Download_Our_Brains_Like_In_Westworld":
"/blog/will-we-ever-be-able-to-download-our-brains-like-in-westworld",
"/blog/Fixing_an_ugly_terminal": "/blog/your-terminal-is-ugly",
"/blog/tags": "/blog",
"/services/": "/services/devrel",
"/blog/where-in-the-world-is-static-shock-for-gba":
"https://lostpixellore.com/blog/where-in-the-world-is-static-shock-for-gba",
},
vite: {
plugins: [tailwindcss(), sitemap()],
},
adapter: netlify(),
});