Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate playground compiler #695

Merged
merged 19 commits into from
Oct 28, 2023

Conversation

aspeddro
Copy link
Collaborator

@aspeddro aspeddro commented May 30, 2023

I'm going to split this PR into two parts because the second requires NextJS version 12. Waiting for #645 to finish the second part.

Part 2 #565:

@aspeddro
Copy link
Collaborator Author

aspeddro commented Jun 9, 2023

This can be merged, part two is independent.

pages/try.js Outdated Show resolved Hide resolved
@aspeddro aspeddro changed the title Automate playground compiler (Part 1) Automate playground compiler Oct 24, 2023
@aspeddro
Copy link
Collaborator Author

rescript-compiler repo PR rescript-lang/rescript#6449

Now we need to pass the environment variable NEXT_REVALIDATE_SECRET_TOKEN in the vercel deploy

src/others/Revalidate.res Outdated Show resolved Hide resolved
src/others/Revalidate.resi Outdated Show resolved Hide resolved
@aspeddro
Copy link
Collaborator Author

Ready for review

@zth
Copy link
Collaborator

zth commented Oct 27, 2023

@aspeddro I haven't really been in this part of the code yet. Who'd be good to review you think?

@aspeddro
Copy link
Collaborator Author

@ryyppy

@zth zth requested a review from ryyppy October 27, 2023 14:02
Copy link
Member

@ryyppy ryyppy left a comment

Choose a reason for hiding this comment

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

LGTM. I added some nitpicks, but if you feel this is the way to go, we can also just merge.

I already added the relevant NEXT_REVALIDATE_SECRET_TOKEN secret to the Vercel settings and the rescript-compiler repo secrets.

So as soon as we merge this, everything should just work, I assume.

src/common/Util.res Outdated Show resolved Hide resolved
@aspeddro
Copy link
Collaborator Author

@ryyppy the deployment failed. I can't see the log either

image

@ryyppy
Copy link
Member

ryyppy commented Oct 27, 2023

had to approve the deployment

@cknitt cknitt merged commit bc82771 into rescript-lang:master Oct 28, 2023
1 check passed
zth pushed a commit that referenced this pull request Nov 2, 2023
* first tests

* automate playground versions

* fix typo

* refactor

* refactor

* refactor

* format

* remove log

* remove json binding

* add revalidate route

* parse rc

* order experimental versions

* last adjusts

* cleanup

* move Semver to CompilerManagerHook module
fhammerschmidt pushed a commit that referenced this pull request Nov 14, 2023
* first tests

* automate playground versions

* fix typo

* refactor

* refactor

* refactor

* format

* remove log

* remove json binding

* add revalidate route

* parse rc

* order experimental versions

* last adjusts

* cleanup

* move Semver to CompilerManagerHook module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants