@openstack_dev/gatsby-theme-marketing-oif-core 1.0.32 → 1.0.33-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstack_dev/gatsby-theme-marketing-oif-core",
3
- "version": "1.0.32",
3
+ "version": "1.0.33-beta.1",
4
4
  "description": "Base theme for Marketing Sites",
5
5
  "author": "smarcet",
6
6
  "keywords": [
@@ -1,3 +1,4 @@
1
+ import { withPrefix } from "gatsby";
1
2
  import configurationsCollection from "./collections/configurationsCollection";
2
3
 
3
4
  const CMS_BACKEND_REPO = process.env.GATSBY_CMS_BACKEND_REPO;
@@ -5,6 +6,9 @@ const CMS_BACKEND_BRANCH = process.env.GATSBY_CMS_BACKEND_BRANCH || "main";
5
6
 
6
7
  export const collections = [configurationsCollection];
7
8
 
9
+ // Gatsby sets __PATH_PREFIX__ at runtime ("" in dev, "/marketplace" in prod builds)
10
+ const publicFolder = withPrefix("/img");
11
+
8
12
  const config = {
9
13
  backend: {
10
14
  name: "github",
@@ -22,7 +26,7 @@ const config = {
22
26
  // missing, but will improve performance and avoid a load error.
23
27
  load_config_file: false,
24
28
  media_folder: "static/img",
25
- public_folder: "/img",
29
+ public_folder: publicFolder,
26
30
  collections
27
31
  };
28
32