website: Render versions under /data/versions.json#7783
Merged
charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom Jul 17, 2025
Merged
website: Render versions under /data/versions.json#7783charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom
charlieegan3 merged 1 commit intoopen-policy-agent:mainfrom
Conversation
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
Author
|
Test this PR here: https://deploy-preview-7783--openpolicyagent.netlify.app/data/versions.json |
charlieegan3
commented
Jul 17, 2025
| [[headers]] | ||
| for = "/data/versions.json" | ||
| [headers.values] | ||
| Access-Control-Allow-Origin = "https://*.netlify.app" |
Contributor
Author
There was a problem hiding this comment.
This is perhaps broad but we have sites like: https://v1-3-0--opa-docs.netlify.app/ etc and I think only globbing is allowed in these headers.
charlieegan3
commented
Jul 17, 2025
| const { createData, addRoute } = actions; | ||
| const { versions } = content; | ||
|
|
||
| await createData("versions.json", JSON.stringify(versions, null, 2)); |
Contributor
Author
There was a problem hiding this comment.
I have validated that tag v1.6.0 contains a caps.json file for this release, so I am using the list of capabilities as the definitive list of releases.
srenatus
reviewed
Jul 17, 2025
4a78d6e to
6ca01fe
Compare
This will facilitate other sites checking the current version of the OPA website. Signed-off-by: Charlie Egan <charlie@styra.com>
6ca01fe to
9443fd8
Compare
srenatus
approved these changes
Jul 17, 2025
Contributor
Author
|
Thanks Stephan! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This will facilitate versioned OPA docs sites checking the current version of the OPA website.