Skip to content

Commit 4aa4554

Browse files
authored
website: Fix build issues (#7999)
There are some build issues related to a new netlify base image. https://app.netlify.com/projects/openpolicyagent/deploys/69020ac6a2fe410008c643de Signed-off-by: Charlie Egan <[email protected]>
1 parent 9a864c6 commit 4aa4554

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ const semver = require("semver");
55
import fs from "fs/promises";
66
const path = require("path");
77

8-
const { loadPages } = require("./src/lib/ecosystem/loadPages");
9-
const { loadRules } = require("./src/lib/projects/regal/loadRules");
8+
import { loadPages } from "./src/lib/ecosystem/loadPages.js";
9+
import { loadRules } from "./src/lib/projects/regal/loadRules.js";
1010

1111
const baseUrl = "/";
1212

docs/src/lib/ecosystem/loadPages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from "fs/promises";
22
import { matter } from "md-front-matter";
33
import path from "path";
44

5-
const { glob } = require("glob");
5+
import { glob } from "glob";
66

77
export async function loadPages(globPattern) {
88
const files = await glob(globPattern);

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ command = "make netlify-latest"
44
edge_functions = "docs/functions"
55

66
[build.environment]
7-
NODE_VERSION = "22.15.0"
7+
NODE_VERSION = "22.16.0"
88
# some examples in v1/test/cases/testdata/v0/cryptox509* flag the netlify
99
# secret scan
1010
SECRETS_SCAN_OMIT_PATHS = "v1/test/cases,v1/topdown/crypto_test.go"

0 commit comments

Comments
 (0)