Skip to content

Commit

Permalink
Merge pull request #1607 from dandi/server-info-json
Browse files Browse the repository at this point in the history
Serve pure JSON from /server-info frontend endpoint
  • Loading branch information
waxlamp authored Jun 6, 2023
2 parents 1434439 + f0a7d8b commit 24bd598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/netlify/plugins/server-info-build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
apiUrl = apiUrl.endsWith('/') ? apiUrl.slice(0, -1) : apiUrl;
netlifyConfig.redirects.unshift({
from: '/server-info',
to: `${apiUrl}/info/`,
to: `${apiUrl}/info/?format=json`,
status: 200,
});
},
Expand Down

0 comments on commit 24bd598

Please sign in to comment.