diff --git a/gatsby-config.js b/gatsby-config.js index 73c8547c..c5b50f34 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -45,5 +45,13 @@ module.exports = { }, }, `gatsby-plugin-postcss`, + { + resolve: `@devular/gatsby-plugin-plausible`, + options: { + domain: `warewulf.org`, + proxyScript: `https://img.resf.workers.dev/js/script.outbound-links.js`, + proxyApi: `https://img.resf.workers.dev/img/event`, + }, + }, ], } diff --git a/gatsby-node.js b/gatsby-node.js index befea2c6..47428849 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -12,5 +12,7 @@ exports.createPages = async ({ graphql, actions }) => { createRedirect({ fromPath: `/docs/development/*`, toPath: `/docs/main/*`, + force: true, + redirectInBrowser: true, }) } diff --git a/package.json b/package.json index f5d1a524..5e517f77 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "author": "Kostas Vrouvas ", "dependencies": { "@tailwindcss/typography": "^0.5.13", + "@devular/gatsby-plugin-plausible": "^0.1.8", "autoprefixer": "^10.4.19", "gatsby": "^5.13.4", "gatsby-cli": "^5.13.3",