From b293bdf8fbd045512e0aae40ea4cd17a7de2b819 Mon Sep 17 00:00:00 2001 From: Everett Pompeii Date: Sun, 3 Dec 2023 14:26:30 -0500 Subject: [PATCH] prerender_false --- .github/workflows/bencher.yml | 6 +----- services/console/lychee.toml | 6 +++++- services/console/src/chunks/reference/en/changelog.mdx | 2 +- services/console/src/content/how_to/de/github-actions.mdx | 2 +- services/console/src/content/how_to/de/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/en/github-actions.mdx | 2 +- services/console/src/content/how_to/en/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/es/github-actions.mdx | 2 +- services/console/src/content/how_to/es/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/fr/github-actions.mdx | 2 +- services/console/src/content/how_to/fr/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/ja/github-actions.mdx | 2 +- services/console/src/content/how_to/ja/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/ko/github-actions.mdx | 2 +- services/console/src/content/how_to/ko/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/pt/github-actions.mdx | 2 +- services/console/src/content/how_to/pt/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/ru/github-actions.mdx | 2 +- services/console/src/content/how_to/ru/gitlab-ci-cd.mdx | 2 +- services/console/src/content/how_to/zh/github-actions.mdx | 2 +- services/console/src/content/how_to/zh/gitlab-ci-cd.mdx | 2 +- services/console/src/pages/auth/confirm.astro | 1 + services/console/src/pages/auth/login.astro | 1 + services/console/src/pages/auth/signup.astro | 1 + services/console/src/pages/console/index.astro | 1 + .../console/organizations/[organization]/billing.astro | 1 + .../organizations/[organization]/members/[member].astro | 1 + .../organizations/[organization]/members/index.astro | 1 + .../organizations/[organization]/members/invite.astro | 1 + .../console/organizations/[organization]/projects/add.astro | 1 + .../organizations/[organization]/projects/index.astro | 1 + .../console/organizations/[organization]/settings.astro | 1 + .../console/src/pages/console/organizations/index.astro | 1 + .../pages/console/projects/[project]/alerts/[alert].astro | 1 + .../src/pages/console/projects/[project]/alerts/index.astro | 1 + .../console/projects/[project]/benchmarks/[benchmark].astro | 1 + .../pages/console/projects/[project]/benchmarks/add.astro | 1 + .../pages/console/projects/[project]/benchmarks/index.astro | 1 + .../console/projects/[project]/branches/[branch].astro | 1 + .../src/pages/console/projects/[project]/branches/add.astro | 1 + .../pages/console/projects/[project]/branches/index.astro | 1 + .../projects/[project]/metric-kinds/[metric_kind].astro | 1 + .../pages/console/projects/[project]/metric-kinds/add.astro | 1 + .../console/projects/[project]/metric-kinds/index.astro | 1 + .../console/src/pages/console/projects/[project]/perf.astro | 1 + .../pages/console/projects/[project]/reports/[report].astro | 1 + .../pages/console/projects/[project]/reports/index.astro | 1 + .../src/pages/console/projects/[project]/settings.astro | 1 + .../console/projects/[project]/testbeds/[testbed].astro | 1 + .../src/pages/console/projects/[project]/testbeds/add.astro | 1 + .../pages/console/projects/[project]/testbeds/index.astro | 1 + .../projects/[project]/thresholds/[threshold]/edit.astro | 1 + .../projects/[project]/thresholds/[threshold]/index.astro | 1 + .../pages/console/projects/[project]/thresholds/add.astro | 1 + .../pages/console/projects/[project]/thresholds/index.astro | 1 + services/console/src/pages/console/users/[user]/help.astro | 1 + .../console/src/pages/console/users/[user]/settings.astro | 1 + .../src/pages/console/users/[user]/tokens/[token].astro | 1 + .../console/src/pages/console/users/[user]/tokens/add.astro | 1 + .../src/pages/console/users/[user]/tokens/index.astro | 1 + services/console/src/pages/docs/[lang]/reference/api.astro | 2 ++ services/console/src/pages/docs/reference/api.astro | 1 + .../console/src/pages/perf/[project]/alerts/[alert].astro | 1 + services/console/src/pages/perf/[project]/embed.astro | 1 + services/console/src/pages/perf/[project]/index.astro | 1 + services/console/src/pages/perf/index.astro | 1 + 66 files changed, 71 insertions(+), 25 deletions(-) diff --git a/.github/workflows/bencher.yml b/.github/workflows/bencher.yml index 188d59817..92f1dda4b 100644 --- a/.github/workflows/bencher.yml +++ b/.github/workflows/bencher.yml @@ -673,13 +673,9 @@ jobs: - name: Test Links uses: lycheeverse/lychee-action@v1.8.0 with: + debug: true fail: true args: --config ./services/console/lychee.toml ./services/console/dist - - name: Upload Lychee Report - uses: actions/upload-artifact@v3 - with: - name: lychee.md - path: lychee/out.md # API Fly.io deploy_local_api_fly: diff --git a/services/console/lychee.toml b/services/console/lychee.toml index 9e664b947..00dd37a36 100644 --- a/services/console/lychee.toml +++ b/services/console/lychee.toml @@ -1,11 +1,15 @@ -base = "https://bencher.dev" +# Use this for testing production +# base = "https://bencher.dev" exclude = [ "http://localhost:3000/", "https://discord.gg/yGEsdUh7R4", "https://github.com/bencherdev/bencher/issues/new*", + # TODO figure out why this page 404s + # "https://bencher.dev/docs/[a-z]{2}/reference/api", ] # TODO remove exclude paths once `--cookie-jar` is stable # https://github.com/lycheeverse/lychee/commit/14e748793e8a08d7c2130f63896074f4980204cb +# Netlify paths exclude_path = [ "./services/console/dist/docs/reference/prior-art/index.html", "./services/console/dist/docs/de/reference/prior-art/index.html", diff --git a/services/console/src/chunks/reference/en/changelog.mdx b/services/console/src/chunks/reference/en/changelog.mdx index 7faf16fd4..260483a04 100644 --- a/services/console/src/chunks/reference/en/changelog.mdx +++ b/services/console/src/chunks/reference/en/changelog.mdx @@ -219,7 +219,7 @@ ## `v0.2.30` - Added `--if-else-branch`, `--else-branch`, and `--endif-branch` flags to to `bencher run` CLI -- Wrote a [branch management](/explanation/branch-management) explanation page for using `bencher run` +- Wrote a [branch management](/explanation/branch-selection) explanation page for using `bencher run` - Completely refactored docs UI configuration to make it easier to add new pages, one place instead of three - Made the [Diataxis](https://diataxis.fr/) convention explicit in the docs - Fixed bounds bug in `bencher mock` diff --git a/services/console/src/content/how_to/de/github-actions.mdx b/services/console/src/content/how_to/de/github-actions.mdx index 088561287..43281b65b 100644 --- a/services/console/src/content/how_to/de/github-actions.mdx +++ b/services/console/src/content/how_to/de/github-actions.mdx @@ -44,7 +44,7 @@ Wenn Sie nur erwarten, dass Sie PRs von Zweigen innerhalb des **gleichen** Repos 1. Die aktuellen Branch-Daten zu verwenden, wenn sie bereits existieren. (z.B.: `--if-branch "$GITHUB_REF_NAME"`) 2. Erstellen Sie einen Klon der PR-Zielbranch-Daten und Schwellenwert, wenn sie bereits existieren. (z.B.: `--else-if-branch "$GITHUB_BASE_REF"`) 3. Ansonsten erstellen Sie einen Klon der `main` Branch-Daten und Schwellenwerte. (z.B.: `--else-if-branch main`) - 4. Es gibt mehrere Optionen für die Einstellung des Projektbranches. Siehe [Branch Auswahl](/docs/de/how-to/branch-selection) für einen vollständigen Überblick. + 4. Es gibt mehrere Optionen für die Einstellung des Projektbranches. Siehe [Branch Auswahl](/docs/de/explanation/branch-selection) für einen vollständigen Überblick. 3. Setzen Sie das GitHub API Authentifizierungstoken. (z.B.: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) Wenn diese Option als Teil einer Pull-Anfrage gesetzt ist, werden die Ergebnisse als Kommentar zur Pull-Anfrage hinzugefügt. Dies verwendet [die GitHub Actions `GITHUB_TOKEN` Umgebungsvariable](https://docs.github.com/de/actions/security-guides/automatic-token-authentication). 4. Siehe die [bencher run](/docs/de/explanation/bencher-run) Dokumentation für einen vollständigen Überblick über alle Möglichkeiten zur Konfiguration des Pull-Anfragen-Kommentars mit den `--ci-*` Flags. diff --git a/services/console/src/content/how_to/de/gitlab-ci-cd.mdx b/services/console/src/content/how_to/de/gitlab-ci-cd.mdx index 8a1e86dad..be1da9830 100644 --- a/services/console/src/content/how_to/de/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/de/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. Optional: Erstellen Sie eine Umgebungsvariable, um die übersichtliche Kontrolle der verwendeten CLI-Version zu erleichtern. (z.B.: {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. Laden Sie die Bencher CLI herunter und installieren Sie sie von einer `.deb` Datei. 1. Verfolgen Sie Ihre Benchmarks mit dem Befehl bencher run CLI-Unterbefehl: - 1. Es gibt mehrere Optionen zum Einstellen des Projektablaufs. Weitere Einzelheiten finden Sie unter [Zweigauswahl](/docs/de/how-to/branch-selection). Der bereitgestellte Befehl verwendet [GitLab CI/CD vorausdefinierte Variablen](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) und versucht: + 1. Es gibt mehrere Optionen zum Einstellen des Projektablaufs. Weitere Einzelheiten finden Sie unter [Zweigauswahl](/docs/de/explanation/branch-selection). Der bereitgestellte Befehl verwendet [GitLab CI/CD vorausdefinierte Variablen](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) und versucht: 1. Verwenden Sie den aktuellen Zweig, wenn er bereits existiert. (z.B.: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. Erstellen Sie einen Klon der MR-Zielbranchdaten und -schwellenwerte, wenn sie bereits existieren. (z.B.: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. Andernfalls erstellen Sie einen Klon der `main` Branch-Daten und -Schwellenwerte. (z.B.: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/en/github-actions.mdx b/services/console/src/content/how_to/en/github-actions.mdx index 92ecf2dce..4ee974dcd 100644 --- a/services/console/src/content/how_to/en/github-actions.mdx +++ b/services/console/src/content/how_to/en/github-actions.mdx @@ -44,7 +44,7 @@ If you only expect to have PRs from branches within the **same** repository then 1. Use the current branch data if it already exists. (ex: `--if-branch "$GITHUB_REF_NAME"`) 2. Create a clone of the PR target branch data and thresholds if it already exists. (ex: `--else-if-branch "$GITHUB_BASE_REF"`) 3. Otherwise, create a clone of the `main` branch data and thresholds. (ex: `--else-if-branch main`) - 4. There are several options for setting the project branch. See [branch selection](/docs/how-to/branch-selection) for a full overview. + 4. There are several options for setting the project branch. See [branch selection](/docs/explanation/branch-selection) for a full overview. 3. Set the GitHub API authentication token. (ex: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) When this option is set as a part of a pull request, then the results will be added to the pull request as a comment. This uses [the GitHub Actions `GITHUB_TOKEN` environment variable](https://docs.github.com/en/actions/security-guides/automatic-token-authentication). 4. See the [bencher run](/docs/explanation/bencher-run) documentation for a full overview of all the ways to configure the pull request comment with the `--ci-*` flags. diff --git a/services/console/src/content/how_to/en/gitlab-ci-cd.mdx b/services/console/src/content/how_to/en/gitlab-ci-cd.mdx index f97ae3b4d..bf2fec772 100644 --- a/services/console/src/content/how_to/en/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/en/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. Optional: Create an environment variable to make it easy to keep track the CLI version being used. (ex: {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. Download and install the Bencher CLI from a `.deb`. 1. [Track your benchmarks](/docs/how-to/track-benchmarks) with the bencher run CLI subcommand: - 1. There are several options for setting the project branch. See [branch selection](/docs/how-to/branch-selection) for a full overview. The provided command uses [GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) and it tries to: + 1. There are several options for setting the project branch. See [branch selection](/docs/explanation/branch-selection) for a full overview. The provided command uses [GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) and it tries to: 1. Use the current branch if it already exists. (ex: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. Create a clone of MR target branch data and thresholds if it already exists. (ex: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. Otherwise, create a clone of the `main` branch data and thresholds. (ex: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/es/github-actions.mdx b/services/console/src/content/how_to/es/github-actions.mdx index cf5b34aa7..9f9e48874 100644 --- a/services/console/src/content/how_to/es/github-actions.mdx +++ b/services/console/src/content/how_to/es/github-actions.mdx @@ -44,7 +44,7 @@ Si solo esperas tener PRs desde las branch dentro del **mismo** repositorio ento 1. Usa los datos de la branch actual si ya existen. (p.ej: `--if-branch "$GITHUB_REF_NAME"`) 2. Crea un clon de los datos y umbrales de la branch objetivo de PR si ya existen. (p.ej: `--else-if-branch "$GITHUB_BASE_REF"`) 3. De lo contrario, crea un clon de los datos y umbrales de la branch `main`. (p.ej: `--else-if-branch main`) - 4. Hay varias opciones para ajustar la branch del proyecto. Consulta [selección de branch](/docs/es/how-to/branch-selection) para una visión general completa. + 4. Hay varias opciones para ajustar la branch del proyecto. Consulta [selección de branch](/docs/es/explanation/branch-selection) para una visión general completa. 3. Ajusta el token de autenticación de GitHub API. (p.ej: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) Cuando esta opción se ajusta como parte de un pull request, entonces los resultados serán adicionados al pull request como un comentario. Esto usa [la variable de entorno `GITHUB_TOKEN` de GitHub Actions](https://docs.github.com/es/actions/security-guides/automatic-token-authentication). 4. Consulta la [documentación de bencher run](/docs/es/explanation/bencher-run) para una visión general completa de todas las maneras de configurar el comentario de pull request con las opciones `--ci-*`. diff --git a/services/console/src/content/how_to/es/gitlab-ci-cd.mdx b/services/console/src/content/how_to/es/gitlab-ci-cd.mdx index c05f40c33..6b012d0f4 100644 --- a/services/console/src/content/how_to/es/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/es/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. Opcional: Crea una variable de entorno para facilitar el seguimiento de la versión de CLI que se está utilizando. (ej: {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. Descarga e instala el CLI de Bencher desde un `.deb`. 1. [Rastrea tus benchmarks](/docs/es/how-to/track-benchmarks) con el subcomando CLI bencher run: - 1. Hay varias opciones para establecer la rama del proyecto. Consulta [selección de rama](/docs/es/how-to/branch-selection) para una descripción completa. El comando proporcionado utiliza [variables predefinidas de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) e intenta: + 1. Hay varias opciones para establecer la rama del proyecto. Consulta [selección de rama](/docs/es/explanation/branch-selection) para una descripción completa. El comando proporcionado utiliza [variables predefinidas de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) e intenta: 1. Utilizar la rama actual si ya existe. (ej: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. Crear un clon de los datos de la rama objetivo MR y los umbrales si ya existe. (ej: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. En otro caso, crear un clon de los datos de la rama `main` y los umbrales. (ej: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/fr/github-actions.mdx b/services/console/src/content/how_to/fr/github-actions.mdx index c29b7c6c3..292d062f5 100644 --- a/services/console/src/content/how_to/fr/github-actions.mdx +++ b/services/console/src/content/how_to/fr/github-actions.mdx @@ -44,7 +44,7 @@ Si vous prévoyez uniquement d'avoir des PRs provenant de branches au sein du ** 1. Utiliser des données de branche actuelles si elles existent déjà. (ex: `--if-branch "$GITHUB_REF_NAME"`) 2. Créer un clone des données et des seuils de la branche cible de la PR si cela existe déjà. (ex: `--else-if-branch "$GITHUB_BASE_REF"`) 3. Sinon, créez un clone des données et des seuils de la branche `main`. (ex: `--else-if-branch main`) - 4. Il existe plusieurs options pour définir la branche du projet. Voir la [sélection de branche](/docs/fr/how-to/branch-selection) pour une vue d'ensemble complète. + 4. Il existe plusieurs options pour définir la branche du projet. Voir la [sélection de branche](/docs/fr/explanation/branch-selection) pour une vue d'ensemble complète. 3. Paramétrez le jeton d'authentification de l'API GitHub. (ex: `--github-actions ${{ secrets.GITHUB_TOKEN }}`). Lorsque cette option est définie dans le cadre d'une pull request, alors les résultats seront ajoutés à la pull request sous forme de commentaire. Ceci utilise [la variable d'environnement `GITHUB_TOKEN` des GitHub Actions](https://docs.github.com/fr/actions/security-guides/automatic-token-authentication). 4. Consultez la documentation [bencher run](/docs/fr/explanation/bencher-run) pour une vue d'ensemble complète de toutes les façons de configurer le commentaire de pull request avec les drapeaux `--ci-*`. diff --git a/services/console/src/content/how_to/fr/gitlab-ci-cd.mdx b/services/console/src/content/how_to/fr/gitlab-ci-cd.mdx index c281cae7b..ee38b2d09 100644 --- a/services/console/src/content/how_to/fr/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/fr/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. Optionnel : Créez une variable d'environnement pour faciliter le suivi de la version de la CLI utilisée. (ex: {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. Téléchargez et installez la CLI Bencher à partir d'un `.deb`. 1. [Suivez vos benchmarks](/docs/fr/how-to/track-benchmarks) avec la sous-commande CLI bencher run : - 1. Il existe plusieurs options pour définir la branche du projet. Consultez [la sélection de branches](/docs/fr/how-to/branch-selection) pour un aperçu complet. La commande fournie utilise [les variables prédéfinies de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) et elle essaie de : + 1. Il existe plusieurs options pour définir la branche du projet. Consultez [la sélection de branches](/docs/fr/explanation/branch-selection) pour un aperçu complet. La commande fournie utilise [les variables prédéfinies de GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) et elle essaie de : 1. Utiliser la branche actuelle si elle existe déjà. (ex: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. Créer un clône des données et des seuils de la branche cible de MR si elle existe déjà. (ex: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. Sinon, créer un clône des données et des seuils de la branche `main`. (ex: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/ja/github-actions.mdx b/services/console/src/content/how_to/ja/github-actions.mdx index 5c39ebe7c..05492e51a 100644 --- a/services/console/src/content/how_to/ja/github-actions.mdx +++ b/services/console/src/content/how_to/ja/github-actions.mdx @@ -44,7 +44,7 @@ import GitHubActions6 from "../../../chunks/how_to/github-actions.6.mdx"; 1. すでに存在する場合は、現在のbranchのデータを使用します。(例: `--if-branch "$GITHUB_REF_NAME"`) 2. すでに存在する場合は、PRターゲットbranchのデータとしきい値をクローンします。(例: `--else-if-branch "$GITHUB_BASE_REF"`) 3. それ以外の場合は、`main` branchのデータとしきい値をクローンします。(例: `--else-if-branch main`) - 4. プロジェクトbranchを設定するためのいくつかのオプションがあります。全体の概要については、[branch selection](/docs/ja/how-to/branch-selection) をご覧ください。 + 4. プロジェクトbranchを設定するためのいくつかのオプションがあります。全体の概要については、[branch selection](/docs/ja/explanation/branch-selection) をご覧ください。 3. GitHub APIの認証トークンを設定します。(例: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) このオプションがプルリクエストの一部として設定されると、結果はプルリクエストにコメントとして追加されます。これは[GitHub Actionsの `GITHUB_TOKEN` 環境変数](https://docs.github.com/ja/actions/security-guides/automatic-token-authentication)を使用します。 4. `--ci-*` フラグを使用したプルリクエストコメントの設定方法については、[bencher run](/docs/ja/explanation/bencher-run) のドキュメンテーションを全面的にご覧ください。 diff --git a/services/console/src/content/how_to/ja/gitlab-ci-cd.mdx b/services/console/src/content/how_to/ja/gitlab-ci-cd.mdx index 74f70216b..2618851ac 100644 --- a/services/console/src/content/how_to/ja/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/ja/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. オプション:使用中のCLIバージョンを追跡しやすくするための環境変数を作成します。(例:{`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. `.deb`からBencher CLIをダウンロードし、インストールします。 1. bencher run CLIサブコマンドを使って、あなたのベンチマークを[追跡します](/docs/ja/how-to/track-benchmarks): - 1. プロジェクトブランチの設定に関してはいくつかの選択肢があります。完全な概観については、[branch selection](/docs/ja/how-to/branch-selection)を参照してください。提供されたコマンドは[GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)を使用し、 + 1. プロジェクトブランチの設定に関してはいくつかの選択肢があります。完全な概観については、[branch selection](/docs/ja/explanation/branch-selection)を参照してください。提供されたコマンドは[GitLab CI/CD predefined variables](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)を使用し、 1. すでに存在している場合、現在のブランチを使用します。(例: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. すでに存在している場合、MRターゲットブランチのデータと閾値のクローンを作成します。(例: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. それ以外の場合は、 `main` ブランチのデータと閾値のクローンを作成します。(例: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/ko/github-actions.mdx b/services/console/src/content/how_to/ko/github-actions.mdx index 3f274c6da..1d9cea20e 100644 --- a/services/console/src/content/how_to/ko/github-actions.mdx +++ b/services/console/src/content/how_to/ko/github-actions.mdx @@ -44,7 +44,7 @@ Pull Request에서 성능 회귀를 잡아내기 위해 PR에서 벤치마크를 1. 현재 브랜치 데이터가 이미 존재하면 이를 사용합니다. (예: `--if-branch "$GITHUB_REF_NAME"`) 2. PR 대상 브랜치 데이터와 임계값이 이미 존재하면 이를 복제해서 만듭니다. (예: `--else-if-branch "$GITHUB_BASE_REF"`) 3. 그 외의 경우, `main` 브랜치 데이터와 임계값을 복제해서 만듭니다. (예: `--else-if-branch main`) - 4. 프로젝트 브랜치를 설정하는 데는 여러 가지 옵션이 있습니다. 전체 개요는 [브랜치 선택](/docs/ko/how-to/branch-selection)을 참조하세요. + 4. 프로젝트 브랜치를 설정하는 데는 여러 가지 옵션이 있습니다. 전체 개요는 [브랜치 선택](/docs/ko/explanation/branch-selection)을 참조하세요. 3. GitHub API 인증 토큰을 설정합니다. (예: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) 이 옵션이 pull request의 일부로 설정되면, 결과가 pull request에 댓글로 추가됩니다. 이는 [GitHub Actions `GITHUB_TOKEN` 환경 변수](https://docs.github.com/ko/actions/security-guides/automatic-token-authentication)를 사용합니다. 4. `--ci-*` 플래그로 pull request 댓글을 설정하는 모든 방법에 대한 전체 개요는 [bencher run](/docs/ko/explanation/bencher-run) 문서를 참조하세요. diff --git a/services/console/src/content/how_to/ko/gitlab-ci-cd.mdx b/services/console/src/content/how_to/ko/gitlab-ci-cd.mdx index 97840a599..5010b80cb 100644 --- a/services/console/src/content/how_to/ko/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/ko/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. 선택 사항: 사용 중인 CLI 버전을 쉽게 추적할 수 있도록 환경 변수를 생성합니다 (예: {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. `.deb`에서 Bencher CLI 를 다운로드하고 설치합니다. 1. bencher run CLI 하위 명령어를 이용하여 벤치마크를 추적합니다([벤치마크 추적](/docs/ko/how-to/track-benchmarks) 참조): - 1. 프로젝트의 브랜치를 설정하는 여러 옵션이 있습니다. 전체 개요는 [브랜치 선택](/docs/ko/how-to/branch-selection)을 참조하십시오. 제공된 명령어는 [GitLab CI/CD 사전 정의 변수](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)를 사용하며: + 1. 프로젝트의 브랜치를 설정하는 여러 옵션이 있습니다. 전체 개요는 [브랜치 선택](/docs/ko/explanation/branch-selection)을 참조하십시오. 제공된 명령어는 [GitLab CI/CD 사전 정의 변수](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html)를 사용하며: 1. 해당 브랜치가 이미 존재하면 해당 브랜치를 사용합니다 (예: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. MR 타겟 브랜치 데이터와 임계값의 복제본을 생성합니다 (예: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. 그렇지 않으면, `main` 브랜치 데이터와 임계값의 복제본을 생성합니다 (예: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/pt/github-actions.mdx b/services/console/src/content/how_to/pt/github-actions.mdx index 4e8312187..af27d0c69 100644 --- a/services/console/src/content/how_to/pt/github-actions.mdx +++ b/services/console/src/content/how_to/pt/github-actions.mdx @@ -44,7 +44,7 @@ Se você espera ter PRs apenas de branches dentro do **mesmo** repositório, ent 1. Use os dados da branch atual se já existirem. (ex: `--if-branch "$GITHUB_REF_NAME"`) 2. Crie um clone dos dados e limites da branch de destino do PR se já existirem. (ex: `--else-if-branch "$GITHUB_BASE_REF"`) 3. Caso contrário, crie um clone dos dados e limites da branch `main`. (ex: `--else-if-branch main`) - 4. Existem várias opções para definir a branch do projeto. Veja [seleção de branch](/docs/pt/how-to/branch-selection) para uma visão geral completa. + 4. Existem várias opções para definir a branch do projeto. Veja [seleção de branch](/docs/pt/explanation/branch-selection) para uma visão geral completa. 3. Defina o token de autenticação da API do GitHub. (ex: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) Quando essa opção é definida como parte de um pull request, então os resultados serão adicionados ao pull request como um comentário. Isso usa [a variável de ambiente `GITHUB_TOKEN` das Ações do GitHub](https://docs.github.com/pt/actions/security-guides/automatic-token-authentication). 4. Veja a documentação do [bencher run](/docs/pt/explanation/bencher-run) para uma visão geral completa de todas as maneiras de configurar o comentário do pull request com as flags `--ci-*`. diff --git a/services/console/src/content/how_to/pt/gitlab-ci-cd.mdx b/services/console/src/content/how_to/pt/gitlab-ci-cd.mdx index 9562bf1bd..5f25b85df 100644 --- a/services/console/src/content/how_to/pt/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/pt/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. Opcional: Crie uma variável de ambiente para facilitar o rastreio da versão da CLI em uso. (ex: {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. Baixe e instale a CLI do Bencher de um `.deb`. 1. [Monitore seus benchmarks](/docs/pt/how-to/track-benchmarks) com o subcomando CLI bencher run: - 1. Existem várias opções para definir o branch do projeto. Consulte [seleção de branch](/docs/pt/how-to/branch-selection) para uma visão geral completa. O comando fornecido usa [variáveis predefinidas do GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) e tenta: + 1. Existem várias opções para definir o branch do projeto. Consulte [seleção de branch](/docs/pt/explanation/branch-selection) para uma visão geral completa. O comando fornecido usa [variáveis predefinidas do GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) e tenta: 1. Usar o branch atual se já existir. (ex: `--if-branch "$CI_COMMIT_REF_NAME"`) 1. Crie um clone dos dados e thresholds do branch alvo do MR se já existir. (ex: `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. Caso contrário, crie um clone dos dados e thresholds do branch `main`. (ex: `--else-if-branch main`) diff --git a/services/console/src/content/how_to/ru/github-actions.mdx b/services/console/src/content/how_to/ru/github-actions.mdx index 30d8639fc..e8d70022a 100644 --- a/services/console/src/content/how_to/ru/github-actions.mdx +++ b/services/console/src/content/how_to/ru/github-actions.mdx @@ -44,7 +44,7 @@ import GitHubActions6 from "../../../chunks/how_to/github-actions.6.mdx"; 1. Использование текущих данных ветки, если они уже существуют. (пример: `--if-branch "$GITHUB_REF_NAME"`) 2. Создания клонов данных целевой ветки PR и порогов, если они уже существуют. (пример: `--else-if-branch "$GITHUB_BASE_REF"`) 3. В других случаях создания клонов данных ветки `main` и порогов. (пример: `--else-if-branch main`) - 4. Есть несколько вариантов установки ветки проекта. Подробнее см. [выбор ветви](/docs/ru/how-to/branch-selection). + 4. Есть несколько вариантов установки ветки проекта. Подробнее см. [выбор ветви](/docs/ru/explanation/branch-selection). 3. Установите токен аутентификации на GitHub API. (пример: `--github-actions ${{ secrets.GITHUB_TOKEN }}`) При установке этой опции как часть pull request, результаты будут добавлены в pull request как комментарий. Используется [переменная среды `GITHUB_TOKEN` в GitHub Actions](https://docs.github.com/ru/actions/security-guides/automatic-token-authentication). 4. См. документацию [bencher run](/docs/ru/explanation/bencher-run) для подробного обзора всех способов настройки комментария к pull request с помощью флагов `--ci-*`. diff --git a/services/console/src/content/how_to/ru/gitlab-ci-cd.mdx b/services/console/src/content/how_to/ru/gitlab-ci-cd.mdx index fc61425a1..aa516cd18 100644 --- a/services/console/src/content/how_to/ru/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/ru/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. Необязательно: создайте переменную окружения, чтобы легче отслеживать используемую версию CLI (например, {`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. Скачайте и установите CLI Bencher из файла `.deb`. 1. [Отслеживайте свои бенчмарки](/docs/ru/how-to/track-benchmarks) с помощью подкоманды CLI bencher run: - 1. Существует несколько способов установить ветку проекта. См. [выбор ветки](/docs/ru/how-to/branch-selection) для полного обзора. Предоставленная команда использует [предопределенные переменные GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) и пытается: + 1. Существует несколько способов установить ветку проекта. См. [выбор ветки](/docs/ru/explanation/branch-selection) для полного обзора. Предоставленная команда использует [предопределенные переменные GitLab CI/CD](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html) и пытается: 1. Использовать текущую ветку, если она уже существует. (например, `--if-branch "$CI_COMMIT_REF_NAME"`) 1. Создать копию данных и пороговой ветки для MR, если она уже существует. (например, `--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. В противном случае создать копию данных и порогов главной ветки. (например, `--else-if-branch main`) diff --git a/services/console/src/content/how_to/zh/github-actions.mdx b/services/console/src/content/how_to/zh/github-actions.mdx index 920b7ed69..92580638a 100644 --- a/services/console/src/content/how_to/zh/github-actions.mdx +++ b/services/console/src/content/how_to/zh/github-actions.mdx @@ -43,7 +43,7 @@ import GitHubActions6 from "../../../chunks/how_to/github-actions.6.mdx"; 1. 如果已经存在,使用当前分支的数据。(例如:`--if-branch "$GITHUB_REF_NAME"`) 2. 如果存在,则克隆PR目标分支的数据和阀值。(例如:`--else-if-branch "$GITHUB_BASE_REF"`) 3. 否则,克隆`main`分支的数据和阀值。(例如:`--else-if-branch main`) - 4. 设置项目分支有多种选择。请参阅[分支选择](/docs/zh/how-to/branch-selection)了解完整概览。 + 4. 设置项目分支有多种选择。请参阅[分支选择](/docs/zh/explanation/branch-selection)了解完整概览。 3. 设定GitHub API认证令牌。(例如:`--github-actions ${{ secrets.GITHUB_TOKEN }}`)。当这个选项作为拉取请求的一部分被设定时,结果将以评论的形式添加到拉取请求中。这使用了[GitHub Actions的`GITHUB_TOKEN`环境变量](https://docs.github.com/zh/actions/security-guides/automatic-token-authentication)。 4. 参阅[bencher run](/docs/zh/explanation/bencher-run)文档了解所有配置拉取请求评论的方式,使用`--ci-*`标志。 diff --git a/services/console/src/content/how_to/zh/gitlab-ci-cd.mdx b/services/console/src/content/how_to/zh/gitlab-ci-cd.mdx index 705cb8dbb..553fab78d 100644 --- a/services/console/src/content/how_to/zh/gitlab-ci-cd.mdx +++ b/services/console/src/content/how_to/zh/gitlab-ci-cd.mdx @@ -42,7 +42,7 @@ import { BENCHER_VERSION } from "../../../util/ext"; 1. 可选:创建一个环境变量以方便跟踪使用的CLI版本。 (例如:{`BENCHER_VERSION: ${BENCHER_VERSION}`}) 1. 从`.deb`文件中下载并安装Bencher CLI。 1. 使用bencher run CLI子命令[跟踪您的基准测试](/docs/zh/how-to/track-benchmarks): - 1. 有多种设置项目分支的选项。请见[分支选择](/docs/zh/how-to/branch-selection)获取完整概览。提供的命令使用[GitLab CI/CD预定义变量](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html),并尝试: + 1. 有多种设置项目分支的选项。请见[分支选择](/docs/zh/explanation/branch-selection)获取完整概览。提供的命令使用[GitLab CI/CD预定义变量](https://docs.gitlab.com/ee/ci/variables/predefined_variables.html),并尝试: 1. 如果已经存在,使用当前分支。 (例如:`--if-branch "$CI_COMMIT_REF_NAME"`) 1. 如果已经存在,则创建MR目标分支数据和阈值的克隆。 (例如:`--else-if-branch "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME"`) 1. 否则,创建`main`分支数据和阈值的克隆。 (例如:`--else-if-branch main`) diff --git a/services/console/src/pages/auth/confirm.astro b/services/console/src/pages/auth/confirm.astro index e0a539434..8a00467a5 100644 --- a/services/console/src/pages/auth/confirm.astro +++ b/services/console/src/pages/auth/confirm.astro @@ -5,6 +5,7 @@ import AuthLayout from "../../layouts/auth/AuthLayout.astro"; import ConfirmForm from "../../components/auth/ConfirmForm"; import AuthRedirect from "../../components/auth/AuthRedirect"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const title = "Confirm Token"; const description = "Bencher uses a one-time token to confirm your email address instead of a password."; diff --git a/services/console/src/pages/auth/login.astro b/services/console/src/pages/auth/login.astro index 21518aa5e..b8b91ee71 100644 --- a/services/console/src/pages/auth/login.astro +++ b/services/console/src/pages/auth/login.astro @@ -5,6 +5,7 @@ import AuthLayout from "../../layouts/auth/AuthLayout.astro"; import AuthForm from "../../components/auth/AuthForm"; import AuthRedirect from "../../components/auth/AuthRedirect"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const title = "Log in"; const description = "Log in to Bencher and monitor your continuous benchmarking"; diff --git a/services/console/src/pages/auth/signup.astro b/services/console/src/pages/auth/signup.astro index 6705a2c3e..ef4dde690 100644 --- a/services/console/src/pages/auth/signup.astro +++ b/services/console/src/pages/auth/signup.astro @@ -5,6 +5,7 @@ import AuthLayout from "../../layouts/auth/AuthLayout.astro"; import AuthForm from "../../components/auth/AuthForm"; import AuthRedirect from "../../components/auth/AuthRedirect"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const title = "Sign up"; const description = "Sign up for Bencher and start catching performance regressions before they make it to production"; diff --git a/services/console/src/pages/console/index.astro b/services/console/src/pages/console/index.astro index aa7cdd9b6..2d51d2f33 100644 --- a/services/console/src/pages/console/index.astro +++ b/services/console/src/pages/console/index.astro @@ -4,6 +4,7 @@ export const prerender = false; import BaseLayout from "../../layouts/BaseLayout.astro"; import ConsoleRedirect from "../../components/console/redirects/ConsoleRedirect"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const title = "Bencher Console"; --- diff --git a/services/console/src/pages/console/organizations/[organization]/billing.astro b/services/console/src/pages/console/organizations/[organization]/billing.astro index 2de92355a..d8daeb437 100644 --- a/services/console/src/pages/console/organizations/[organization]/billing.astro +++ b/services/console/src/pages/console/organizations/[organization]/billing.astro @@ -4,6 +4,7 @@ export const prerender = false; import OrgLayout from "../../../../layouts/console/OrgLayout.astro"; import BillingPanel from "../../../../components/console/billing/BillingPanel"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Billing"; diff --git a/services/console/src/pages/console/organizations/[organization]/members/[member].astro b/services/console/src/pages/console/organizations/[organization]/members/[member].astro index 04608d1eb..14e9cabd3 100644 --- a/services/console/src/pages/console/organizations/[organization]/members/[member].astro +++ b/services/console/src/pages/console/organizations/[organization]/members/[member].astro @@ -5,6 +5,7 @@ import OrgLayout from "../../../../../layouts/console/OrgLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Member"; diff --git a/services/console/src/pages/console/organizations/[organization]/members/index.astro b/services/console/src/pages/console/organizations/[organization]/members/index.astro index 95589ecce..f5429ec9d 100644 --- a/services/console/src/pages/console/organizations/[organization]/members/index.astro +++ b/services/console/src/pages/console/organizations/[organization]/members/index.astro @@ -5,6 +5,7 @@ import OrgLayout from "../../../../../layouts/console/OrgLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Members"; diff --git a/services/console/src/pages/console/organizations/[organization]/members/invite.astro b/services/console/src/pages/console/organizations/[organization]/members/invite.astro index 92ea5ad37..d10e054bf 100644 --- a/services/console/src/pages/console/organizations/[organization]/members/invite.astro +++ b/services/console/src/pages/console/organizations/[organization]/members/invite.astro @@ -5,6 +5,7 @@ import OrgLayout from "../../../../../layouts/console/OrgLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Invite Member"; diff --git a/services/console/src/pages/console/organizations/[organization]/projects/add.astro b/services/console/src/pages/console/organizations/[organization]/projects/add.astro index c84c53062..8a1380dcf 100644 --- a/services/console/src/pages/console/organizations/[organization]/projects/add.astro +++ b/services/console/src/pages/console/organizations/[organization]/projects/add.astro @@ -5,6 +5,7 @@ import OrgLayout from "../../../../../layouts/console/OrgLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Project"; diff --git a/services/console/src/pages/console/organizations/[organization]/projects/index.astro b/services/console/src/pages/console/organizations/[organization]/projects/index.astro index 635b8e49c..9a8c25687 100644 --- a/services/console/src/pages/console/organizations/[organization]/projects/index.astro +++ b/services/console/src/pages/console/organizations/[organization]/projects/index.astro @@ -5,6 +5,7 @@ import OrgLayout from "../../../../../layouts/console/OrgLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Projects"; diff --git a/services/console/src/pages/console/organizations/[organization]/settings.astro b/services/console/src/pages/console/organizations/[organization]/settings.astro index 575adb53c..f2a1fbd84 100644 --- a/services/console/src/pages/console/organizations/[organization]/settings.astro +++ b/services/console/src/pages/console/organizations/[organization]/settings.astro @@ -5,6 +5,7 @@ import OrgLayout from "../../../../layouts/console/OrgLayout.astro"; import DeckPanel from "../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Organization Settings"; diff --git a/services/console/src/pages/console/organizations/index.astro b/services/console/src/pages/console/organizations/index.astro index ba97fee20..1602cc927 100644 --- a/services/console/src/pages/console/organizations/index.astro +++ b/services/console/src/pages/console/organizations/index.astro @@ -5,6 +5,7 @@ import UserLayout from "../../../layouts/console/UserLayout.astro"; import TablePanel from "../../../components/console/table/TablePanel"; import { BencherResource } from "../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Organizations"; diff --git a/services/console/src/pages/console/projects/[project]/alerts/[alert].astro b/services/console/src/pages/console/projects/[project]/alerts/[alert].astro index 77c3114a5..2134e11cc 100644 --- a/services/console/src/pages/console/projects/[project]/alerts/[alert].astro +++ b/services/console/src/pages/console/projects/[project]/alerts/[alert].astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Alert"; diff --git a/services/console/src/pages/console/projects/[project]/alerts/index.astro b/services/console/src/pages/console/projects/[project]/alerts/index.astro index 030868fca..5f6f092d7 100644 --- a/services/console/src/pages/console/projects/[project]/alerts/index.astro +++ b/services/console/src/pages/console/projects/[project]/alerts/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Alerts"; diff --git a/services/console/src/pages/console/projects/[project]/benchmarks/[benchmark].astro b/services/console/src/pages/console/projects/[project]/benchmarks/[benchmark].astro index 4ba89aeae..e8047b992 100644 --- a/services/console/src/pages/console/projects/[project]/benchmarks/[benchmark].astro +++ b/services/console/src/pages/console/projects/[project]/benchmarks/[benchmark].astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Benchmark"; diff --git a/services/console/src/pages/console/projects/[project]/benchmarks/add.astro b/services/console/src/pages/console/projects/[project]/benchmarks/add.astro index 30958a53a..c53fd860e 100644 --- a/services/console/src/pages/console/projects/[project]/benchmarks/add.astro +++ b/services/console/src/pages/console/projects/[project]/benchmarks/add.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Benchmark"; diff --git a/services/console/src/pages/console/projects/[project]/benchmarks/index.astro b/services/console/src/pages/console/projects/[project]/benchmarks/index.astro index 13574fdb5..f4b1a4f95 100644 --- a/services/console/src/pages/console/projects/[project]/benchmarks/index.astro +++ b/services/console/src/pages/console/projects/[project]/benchmarks/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Benchmarks"; diff --git a/services/console/src/pages/console/projects/[project]/branches/[branch].astro b/services/console/src/pages/console/projects/[project]/branches/[branch].astro index 6e18787fa..af4de0876 100644 --- a/services/console/src/pages/console/projects/[project]/branches/[branch].astro +++ b/services/console/src/pages/console/projects/[project]/branches/[branch].astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Branch"; diff --git a/services/console/src/pages/console/projects/[project]/branches/add.astro b/services/console/src/pages/console/projects/[project]/branches/add.astro index beb312c2f..4cda9de0c 100644 --- a/services/console/src/pages/console/projects/[project]/branches/add.astro +++ b/services/console/src/pages/console/projects/[project]/branches/add.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Branch"; diff --git a/services/console/src/pages/console/projects/[project]/branches/index.astro b/services/console/src/pages/console/projects/[project]/branches/index.astro index 3c56a6aca..51f9020ca 100644 --- a/services/console/src/pages/console/projects/[project]/branches/index.astro +++ b/services/console/src/pages/console/projects/[project]/branches/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Branches"; diff --git a/services/console/src/pages/console/projects/[project]/metric-kinds/[metric_kind].astro b/services/console/src/pages/console/projects/[project]/metric-kinds/[metric_kind].astro index fbbffe5c6..c0d8b29f8 100644 --- a/services/console/src/pages/console/projects/[project]/metric-kinds/[metric_kind].astro +++ b/services/console/src/pages/console/projects/[project]/metric-kinds/[metric_kind].astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Metric Kind"; diff --git a/services/console/src/pages/console/projects/[project]/metric-kinds/add.astro b/services/console/src/pages/console/projects/[project]/metric-kinds/add.astro index cc97895a7..318deb0fc 100644 --- a/services/console/src/pages/console/projects/[project]/metric-kinds/add.astro +++ b/services/console/src/pages/console/projects/[project]/metric-kinds/add.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Metric Kind"; diff --git a/services/console/src/pages/console/projects/[project]/metric-kinds/index.astro b/services/console/src/pages/console/projects/[project]/metric-kinds/index.astro index c4a9308ab..8fd086345 100644 --- a/services/console/src/pages/console/projects/[project]/metric-kinds/index.astro +++ b/services/console/src/pages/console/projects/[project]/metric-kinds/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Metric Kinds"; diff --git a/services/console/src/pages/console/projects/[project]/perf.astro b/services/console/src/pages/console/projects/[project]/perf.astro index 89684fa7b..723447d94 100644 --- a/services/console/src/pages/console/projects/[project]/perf.astro +++ b/services/console/src/pages/console/projects/[project]/perf.astro @@ -4,6 +4,7 @@ export const prerender = false; import ProjectLayout from "../../../../layouts/console/ProjectLayout.astro"; import PerfPanel from "../../../../components/console/perf/PerfPanel"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Project Perf"; diff --git a/services/console/src/pages/console/projects/[project]/reports/[report].astro b/services/console/src/pages/console/projects/[project]/reports/[report].astro index f3d1c3984..f0b2928e8 100644 --- a/services/console/src/pages/console/projects/[project]/reports/[report].astro +++ b/services/console/src/pages/console/projects/[project]/reports/[report].astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Report"; diff --git a/services/console/src/pages/console/projects/[project]/reports/index.astro b/services/console/src/pages/console/projects/[project]/reports/index.astro index 30c0c3918..403476a57 100644 --- a/services/console/src/pages/console/projects/[project]/reports/index.astro +++ b/services/console/src/pages/console/projects/[project]/reports/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Reports"; diff --git a/services/console/src/pages/console/projects/[project]/settings.astro b/services/console/src/pages/console/projects/[project]/settings.astro index 27d779a52..c66213c28 100644 --- a/services/console/src/pages/console/projects/[project]/settings.astro +++ b/services/console/src/pages/console/projects/[project]/settings.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Project Settings"; diff --git a/services/console/src/pages/console/projects/[project]/testbeds/[testbed].astro b/services/console/src/pages/console/projects/[project]/testbeds/[testbed].astro index 8c418a4a6..ae9d49250 100644 --- a/services/console/src/pages/console/projects/[project]/testbeds/[testbed].astro +++ b/services/console/src/pages/console/projects/[project]/testbeds/[testbed].astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Testbed"; diff --git a/services/console/src/pages/console/projects/[project]/testbeds/add.astro b/services/console/src/pages/console/projects/[project]/testbeds/add.astro index 732041374..0fabbd48f 100644 --- a/services/console/src/pages/console/projects/[project]/testbeds/add.astro +++ b/services/console/src/pages/console/projects/[project]/testbeds/add.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Testbed"; diff --git a/services/console/src/pages/console/projects/[project]/testbeds/index.astro b/services/console/src/pages/console/projects/[project]/testbeds/index.astro index 0a113b93f..1ad38b170 100644 --- a/services/console/src/pages/console/projects/[project]/testbeds/index.astro +++ b/services/console/src/pages/console/projects/[project]/testbeds/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Testbeds"; diff --git a/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/edit.astro b/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/edit.astro index 69bef3c3f..8adc47756 100644 --- a/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/edit.astro +++ b/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/edit.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../../layouts/console/ProjectLayout.astro import PosterPanel from "../../../../../../components/console/poster/PosterPanel"; import { Operation, BencherResource } from "../../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Edit Threshold"; diff --git a/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/index.astro b/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/index.astro index b90c03bc7..4caf65fe3 100644 --- a/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/index.astro +++ b/services/console/src/pages/console/projects/[project]/thresholds/[threshold]/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../../layouts/console/ProjectLayout.astro import DeckPanel from "../../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Threshold"; diff --git a/services/console/src/pages/console/projects/[project]/thresholds/add.astro b/services/console/src/pages/console/projects/[project]/thresholds/add.astro index f0bb3ed5a..6328c5b9e 100644 --- a/services/console/src/pages/console/projects/[project]/thresholds/add.astro +++ b/services/console/src/pages/console/projects/[project]/thresholds/add.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Threshold"; diff --git a/services/console/src/pages/console/projects/[project]/thresholds/index.astro b/services/console/src/pages/console/projects/[project]/thresholds/index.astro index c1f1e08ab..8896ea894 100644 --- a/services/console/src/pages/console/projects/[project]/thresholds/index.astro +++ b/services/console/src/pages/console/projects/[project]/thresholds/index.astro @@ -5,6 +5,7 @@ import ProjectLayout from "../../../../../layouts/console/ProjectLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Thresholds"; diff --git a/services/console/src/pages/console/users/[user]/help.astro b/services/console/src/pages/console/users/[user]/help.astro index 1d38a3c2e..03e06800f 100644 --- a/services/console/src/pages/console/users/[user]/help.astro +++ b/services/console/src/pages/console/users/[user]/help.astro @@ -4,6 +4,7 @@ export const prerender = false; import UserLayout from "../../../../layouts/console/UserLayout.astro"; import HelpPanel from "../../../../components/console/help/HelpPanel"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Token"; diff --git a/services/console/src/pages/console/users/[user]/settings.astro b/services/console/src/pages/console/users/[user]/settings.astro index 5dc92b286..1ebe694f9 100644 --- a/services/console/src/pages/console/users/[user]/settings.astro +++ b/services/console/src/pages/console/users/[user]/settings.astro @@ -5,6 +5,7 @@ import UserLayout from "../../../../layouts/console/UserLayout.astro"; import DeckPanel from "../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Token"; diff --git a/services/console/src/pages/console/users/[user]/tokens/[token].astro b/services/console/src/pages/console/users/[user]/tokens/[token].astro index 25cfaf0c0..357b3baea 100644 --- a/services/console/src/pages/console/users/[user]/tokens/[token].astro +++ b/services/console/src/pages/console/users/[user]/tokens/[token].astro @@ -5,6 +5,7 @@ import UserLayout from "../../../../../layouts/console/UserLayout.astro"; import DeckPanel from "../../../../../components/console/deck/DeckPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "View Token"; diff --git a/services/console/src/pages/console/users/[user]/tokens/add.astro b/services/console/src/pages/console/users/[user]/tokens/add.astro index 149e4b5ba..8fbe66b64 100644 --- a/services/console/src/pages/console/users/[user]/tokens/add.astro +++ b/services/console/src/pages/console/users/[user]/tokens/add.astro @@ -5,6 +5,7 @@ import UserLayout from "../../../../../layouts/console/UserLayout.astro"; import PosterPanel from "../../../../../components/console/poster/PosterPanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Add Token"; diff --git a/services/console/src/pages/console/users/[user]/tokens/index.astro b/services/console/src/pages/console/users/[user]/tokens/index.astro index ee44d06a6..7d76478eb 100644 --- a/services/console/src/pages/console/users/[user]/tokens/index.astro +++ b/services/console/src/pages/console/users/[user]/tokens/index.astro @@ -5,6 +5,7 @@ import UserLayout from "../../../../../layouts/console/UserLayout.astro"; import TablePanel from "../../../../../components/console/table/TablePanel"; import { BencherResource } from "../../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const title = "Tokens"; diff --git a/services/console/src/pages/docs/[lang]/reference/api.astro b/services/console/src/pages/docs/[lang]/reference/api.astro index 11bb00d58..93810baee 100644 --- a/services/console/src/pages/docs/[lang]/reference/api.astro +++ b/services/console/src/pages/docs/[lang]/reference/api.astro @@ -5,7 +5,9 @@ import DocsLayout from "../../../../layouts/docs/DocsLayout.astro"; import SwaggerPanel from "../../../../components/docs/SwaggerPanel"; import { Language } from "../../../../i18n/ui"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; + const { lang } = Astro.params; const title = "REST API"; diff --git a/services/console/src/pages/docs/reference/api.astro b/services/console/src/pages/docs/reference/api.astro index be20c5f6c..cdbbd626c 100644 --- a/services/console/src/pages/docs/reference/api.astro +++ b/services/console/src/pages/docs/reference/api.astro @@ -5,6 +5,7 @@ import DocsLayout from "../../../layouts/docs/DocsLayout.astro"; import SwaggerPanel from "../../../components/docs/SwaggerPanel"; import { Language } from "../../../i18n/ui"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const title = "REST API"; const description = "The REST API for continuous benchmarking with Bencher"; diff --git a/services/console/src/pages/perf/[project]/alerts/[alert].astro b/services/console/src/pages/perf/[project]/alerts/[alert].astro index 24f9b3ad6..de2db0fa1 100644 --- a/services/console/src/pages/perf/[project]/alerts/[alert].astro +++ b/services/console/src/pages/perf/[project]/alerts/[alert].astro @@ -7,6 +7,7 @@ import PublicAlert from "../../../../components/perf/PublicAlert"; import alertsConfig from "../../../../config/project/alerts"; import { Operation } from "../../../../config/types"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const getAlertUrl = `${BENCHER_API_URL}/v0/projects/${params.project}/alerts/${params.alert}`; diff --git a/services/console/src/pages/perf/[project]/embed.astro b/services/console/src/pages/perf/[project]/embed.astro index 43e961fb7..75fbb8b01 100644 --- a/services/console/src/pages/perf/[project]/embed.astro +++ b/services/console/src/pages/perf/[project]/embed.astro @@ -5,6 +5,7 @@ import BaseLayout from "../../../layouts/BaseLayout.astro"; import type { JsonProject } from "../../../types/bencher"; import PerfPanel from "../../../components/console/perf/PerfPanel"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const getProjectUrl = `${BENCHER_API_URL}/v0/projects/${params.project}`; diff --git a/services/console/src/pages/perf/[project]/index.astro b/services/console/src/pages/perf/[project]/index.astro index a8499acb8..a32c9e212 100644 --- a/services/console/src/pages/perf/[project]/index.astro +++ b/services/console/src/pages/perf/[project]/index.astro @@ -5,6 +5,7 @@ import PerfLayout from "../../../layouts/perf/PerfLayout.astro"; import PublicProject from "../../../components/perf/PublicProject"; import type { JsonProject } from "../../../types/bencher"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const params = Astro.params; const getProjectUrl = `${BENCHER_API_URL}/v0/projects/${params.project}`; diff --git a/services/console/src/pages/perf/index.astro b/services/console/src/pages/perf/index.astro index da3e8fae7..5d85c75db 100644 --- a/services/console/src/pages/perf/index.astro +++ b/services/console/src/pages/perf/index.astro @@ -4,6 +4,7 @@ export const prerender = false; import PerfLayout from "../../layouts/perf/PerfLayout.astro"; import PublicProjects from "../../components/perf/PublicProjects"; +// Using `meta.env` requires `prerender = false` const BENCHER_API_URL = import.meta.env.BENCHER_API_URL; const title = "Bencher Projects"; ---