From f68f14fbbf8c03866dd3201d92cf48b3cbf734a8 Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:37:40 +0200 Subject: [PATCH] fix? --- gatsby-config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 5bba50d..756d83f 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,11 +1,13 @@ module.exports = { siteMetadata: require("./metadata"), - pathPrefix: './.', + pathPrefix: '__GATSBY_IPFS_PATH_PREFIX__', plugins: [ + 'gatsby-plugin-sitemap', + { resolve: 'gatsby-plugin-robots-txt', options: { policy: [{userAgent: '*', allow: '/'}] } }, { resolve: `gatsby-plugin-runtime-path-prefix`, options: { - prefix: `./.`, + prefix: `__GATSBY_IPFS_PATH_PREFIX__`, pattern: /^(\/(?:ipfs|ipns)\/[^/]+)/ }, }, @@ -17,8 +19,6 @@ module.exports = { }, 'gatsby-plugin-postcss', 'gatsby-plugin-preact', - 'gatsby-plugin-sitemap', - { resolve: 'gatsby-plugin-robots-txt', options: { policy: [{userAgent: '*', allow: '/'}] } }, { resolve: 'gatsby-source-filesystem', options: {