Skip to main content

Can I output a preview page with Kurocofront?

Yes, it is possible.By creating a pull request on GitHub that is linked, and commenting /kuroco stage, a deploy for preview will be executed.
The necessary settings (YAML file description) are included in the sample code displayed on the Kuroco management screen, so you can use it immediately without any special handling.

Please use it for functions that cannot be confirmed without deployment, verification, reporting to clients, internal reviews, etc.

Steps to execute a preview deploy

Create a PR

Create a PR on GitHub with the changes included.

Image from Gyazo

Add a comment to the PR

Enter /kuroco stage in the comment field at the bottom of the Pull Request page and click [Comment].
Image from Gyazo

After confirming that the comment has been made, click the [Actions] tab. You will see that Github Actions has started the preview deploy in response to the /kuroco stage comment.
Image from Gyazo

Access the issued URL

Go back to the Pull Request page and refresh the page after a while. You will see that a link for the preview deploy has been issued.
Image from Gyazo

Access the link to confirm that the contents of the Pull Request have been deployed.
Image from Gyazo

tip

If you encounter a CORS error when operating from the temporary URL issued by the preview deploy, please specify to allow access from the temporary URL using a wildcard.
The temporary URL is issued in the format of https://hash-value-site-key.g.kuroco-front.app,
so by specifying https://*-site-key.g.kuroco-front.app, you can avoid CORS errors.
Image from Gyazo


Support

If you have any other questions, please contact us or check out Our Slack Community.