Skip to content

Commit

Permalink
Feature/489 remove old sb pdfs (#565)
Browse files Browse the repository at this point in the history
* Remove old SB pdfs.

* Try resolving styles url.

* test configuration.

* remove redundant code.

* ignore trailing slash in urls.

* Add slash to styles uri.

* add more slashes

* test.

* let plugin handel adding baseurl to links.

* update baseurl dynamicly with trailing /.

* revert two more links.

* remove utils file.

* Remove setting that is defaulted.
  • Loading branch information
john-labbate authored Jun 10, 2024
1 parent a300d9b commit 512d162
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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 @@ -19,6 +21,5 @@ export default defineConfig({
[process_image_urls, {baseURL: base}]
],
},
redirects: generateRedirects(base),
trailingSlash: 'always',
redirects: generateRedirects(base)
});

0 comments on commit 512d162

Please sign in to comment.