|
1 | | -/* eslint-disable turbo/no-undeclared-env-vars */ |
2 | 1 | import { defineConfig } from "astro/config"; |
| 2 | +import mdx from "@astrojs/mdx"; |
3 | 3 | import sitemap from "@astrojs/sitemap"; |
4 | 4 |
|
5 | | -/* |
6 | | - We are doing some URL mumbo jumbo here to tell Astro what the URL of your website will be. |
7 | | - In local development, your SEO meta tags will have localhost URL. |
8 | | - In built production websites, your SEO meta tags should have your website URL. |
9 | | - So we give our website URL here and the template will know what URL to use |
10 | | - for meta tags during build. |
11 | | - If you don't know your website URL yet, don't worry about this |
12 | | - and leave it empty or use localhost URL. It won't break anything. |
13 | | -*/ |
14 | 5 | import tailwind from "@astrojs/tailwind"; |
15 | | -const SERVER_PORT = 3000; |
16 | | -// the url to access your blog during local development |
17 | | -const LOCALHOST_URL = `http://localhost:${SERVER_PORT}`; |
18 | | -// the url to access your blog after deploying it somewhere (Eg. Netlify) |
19 | | -const LIVE_URL = "https://travisnorthcutt.com"; |
20 | | -// this is the astro command your npm script runs |
21 | | -const SCRIPT = process.env.npm_lifecycle_script || ""; |
22 | | -const isBuild = SCRIPT.includes("astro build"); |
23 | | -let BASE_URL = LOCALHOST_URL; |
24 | | -// When you're building your site in local or in CI, you could just set your URL manually |
25 | | -if (isBuild) { |
26 | | - BASE_URL = LIVE_URL; |
27 | | -} |
28 | 6 |
|
29 | 7 | // https://astro.build/config |
30 | 8 | export default defineConfig({ |
31 | | - server: { |
32 | | - port: SERVER_PORT, |
| 9 | + markdown: { |
| 10 | + shikiConfig: { |
| 11 | + // Choose from Shiki's built-in themes (or add your own) |
| 12 | + // https://shiki.style/themes |
| 13 | + theme: "github-dark", |
| 14 | + // Alternatively, provide multiple themes |
| 15 | + // https://shiki.style/guide/dual-themes |
| 16 | + // Add custom languages |
| 17 | + // Note: Shiki has countless langs built-in, including .astro! |
| 18 | + // https://shiki.style/languages |
| 19 | + langs: [], |
| 20 | + // Enable word wrap to prevent horizontal scrolling |
| 21 | + wrap: true, |
| 22 | + // Add custom transformers: https://shiki.style/guide/transformers |
| 23 | + // Find common transformers: https://shiki.style/packages/transformers |
| 24 | + transformers: [], |
| 25 | + }, |
33 | 26 | }, |
34 | | - site: BASE_URL, |
35 | | - integrations: [sitemap(), tailwind()], |
| 27 | + site: "https://travisnorthcutt.com", |
| 28 | + integrations: [mdx(), sitemap(), tailwind()], |
36 | 29 | }); |
0 commit comments