Skip to content

Commit

Permalink
Search Console redirects (#100)
Browse files Browse the repository at this point in the history
* Add regex redirect for .pdf urls

* Redirect Slack archive URLs to the documentation website

* Add non-regex redirects for specific URLs

* Update Form Explorer redirects; remove others (for now)

* Remove unnecessary comments
  • Loading branch information
samglover authored Oct 2, 2024
1 parent 04d0292 commit 5eb14cc
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
/** @type {import('next').NextConfig} */

const nextConfig = {
output: 'export',
images: {
unoptimized: true,
async redirects() {
return [
// Form Explorer PDFs
{
source: '/forms/:slug([a-zA-Z\\d]*.pdf)',
destination: 'https://formexplorer.suffolklitlab.org/forms/:slug',
basePath: false,
permanent: true,
},
// Form Explorer CSV
{
source: '/forms/form_data.csv',
destination:
'https://formexplorer.suffolklitlab.org/forms/form_data.csv',
basePath: false,
permanent: true,
},
];
},
};

Expand Down

0 comments on commit 5eb14cc

Please sign in to comment.