Skip to content

Commit

Permalink
Use one config
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzarius committed Jul 17, 2024
1 parent 9782c86 commit ee4faf4
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,10 @@ import mdx from "@astrojs/mdx";

import sitemap from "@astrojs/sitemap";

const config =
import.meta.env.MODE === "development"
? defineConfig({
site: "http://localhost:4321",
base: "/",
integrations: [mdx(), sitemap()],
output: "static",
})
: defineConfig({
site: "https://adaptdk.github.io",
base: "/speculationrules/",
integrations: [mdx(), sitemap()],
output: "static",
});

// https://astro.build/config
export default config;
export default defineConfig({
site: "https://adaptdk.github.io",
base: "/speculationrules/",
integrations: [mdx(), sitemap()],
output: "static",
});

0 comments on commit ee4faf4

Please sign in to comment.