Skip to content

Commit

Permalink
fix: blah blah github blah blah
Browse files Browse the repository at this point in the history
  • Loading branch information
its-darsh committed Nov 15, 2024
1 parent 9358e40 commit 967c854
Show file tree
Hide file tree
Showing 2 changed files with 456 additions and 523 deletions.
17 changes: 14 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,26 @@ import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import fs from "fs";

const BASE_URL = "fabric-wiki";
var SITE_URL;
fs.readFile("./public/CNAME", "utf-8", (err, data) => {
if (err) {
return;
}

SITE_URL = data.trim();
});

const BASE_URL = "/";

// https://astro.build/config
export default defineConfig({
base: "/" + BASE_URL,
base: BASE_URL,
site: SITE_URL,
trailingSlash: "always",
markdown: {
remarkPlugins: [prefixLinks({ base: "/" + BASE_URL + "/" })],
remarkPlugins: [prefixLinks({ base: BASE_URL + "/" })],
},
integrations: [
starlight({
Expand Down
Loading

0 comments on commit 967c854

Please sign in to comment.