Skip to content

Commit

Permalink
feat(VersionOverview): Use config.settings.frontendVersion - refs #15…
Browse files Browse the repository at this point in the history
…3334
  • Loading branch information
avoinea committed Aug 26, 2022
1 parent 17629a0 commit 2143cc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ const applyConfig = (config) => {
config.blocks.blocksConfig.description.restricted = false;
}

// Persist FRONTEND_VERSION on backend registry
if (__SERVER__) {
updateSystemInfo(config);
}

// Changelogs
config.settings.changelogUrlPrefix =
config.settings.changelogPrefix ||
Expand All @@ -38,6 +33,11 @@ const applyConfig = (config) => {
config.settings.backendName =
config.settings.backendName || process.env.BACKEND_NAME || 'plone-backend';

// Persist FRONTEND_VERSION on backend registry
if (__SERVER__) {
updateSystemInfo(config);
}

return config;
};

Expand Down
2 changes: 1 addition & 1 deletion src/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const updateSystemInfo = (config) => {
var fetch = require('node-fetch');
const internalApi =
config.settings.internalApiPath || config.settings.devProxyToApiPath;
const version = process.env.FRONTEND_VERSION;
const version = config.settings.frontendVersion;

// Nothing to do
if (!version || !internalApi) {
Expand Down

0 comments on commit 2143cc6

Please sign in to comment.