Skip to content

Commit

Permalink
Try to set site URL in config to netlify deployment URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 28, 2024
1 parent f2a97e8 commit 138572e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import { defineConfig } from "astro/config";

import sitemap from "@astrojs/sitemap";

const netlifyPrimeURL = import.meta.env.DEPLOY_PRIME_URL;
const siteURL = netlifyPrimeURL ? netlifyPrimeURL : "https://nextflow.io";

// https://astro.build/config
export default defineConfig({
site: "https://nextflow.io/",
site: siteURL + "/",
outDir: "./output",
markdown: {
shikiConfig: {
Expand Down

0 comments on commit 138572e

Please sign in to comment.