Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/489 remove old sb pdfs #565

Merged
merged 14 commits into from
Jun 10, 2024
6 changes: 4 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import sitemap from "@astrojs/sitemap";
import generateRedirects from './src/config/redirects';
import sitemapFilter from "./src/config/sitemapFilter";

const base = process.env.BASEURL ? process.env.BASEURL : '/'

const base = process.env.BASEURL ? (process.env.BASEURL.endsWith('/')? process.env.BASEURL: `${process.env.BASEURL}/`) : '/'

// https://astro.build/config
export default defineConfig({
site: 'https://smartpay.gsa.gov/',
Expand All @@ -20,5 +22,5 @@ export default defineConfig({
],
},
redirects: generateRedirects(base),
trailingSlash: 'always',
trailingSlash: 'ignore',
});
Loading