Skip to content

ruffle-rs/ruffle-rs.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c644865 · Oct 14, 2024
Aug 5, 2024
Jan 7, 2024
Sep 14, 2024
Sep 12, 2024
Aug 20, 2024
Jan 7, 2024
Jan 7, 2024
Aug 5, 2024
Jan 7, 2024
Aug 5, 2024
Jan 7, 2024
Oct 14, 2024
Oct 14, 2024
Jan 7, 2024
Jan 7, 2024

Repository files navigation

This is a Next.js project that makes up the Ruffle website.

Developing locally

To run the development server locally, use npm run dev. Then open up http://localhost:3000 and see the pages live.

To build it as a static website (as we do in production), use npm run build.

Configure GitHub tokens

To get the GitHub parts working (Releases & Contribution graph), you'll need to create and assign a GitHub personal access token.

For instructions on how to create a PAT, see GitHub's documentation.

The PAT only needs read only access to ruffle-rs/ruffle (contents and metadata), or to be lazy, pick "Public Repositories (read-only)".

Set the PAT on the GITHUB_TOKEN environment variable for npm run build/npm run dev to pick it up.

Configure URL

Some parts of the website require absolute URLs, such as opengraph data. It fetches this from the environment variable BASE_URL.

In local development you'll probably want to set it to http://localhost:3000, and in production we use https://ruffle.rs