Skip to content

Commit

Permalink
fix: wrong /config-reset url (sometimes it had a double slash //)
Browse files Browse the repository at this point in the history
  • Loading branch information
Badmuts committed Mar 29, 2024
1 parent 41e5482 commit bff06e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cms/app.js
Expand Up @@ -62,8 +62,8 @@ async function restartAllSites() {
const sites = Object.keys(aposServer);
const promises = sites.map(site => {
const url = new URL('http://' + site);
let resetUrl = `http://localhost:${process.env.PORT}${url.pathname}/config-reset`;
resetUrl = resetUrl.replace('//', '/');
let resetUrl = `http://localhost:${process.env.PORT}`;
resetUrl += `${url.pathname}/config-reset`.replace('//', '/');
return fetch(resetUrl,{
headers: {
Host: url.hostname
Expand Down

1 comment on commit bff06e1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:fix-wrong-config-reset-path-bff06e1

Please sign in to comment.