mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
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 <charlie_egan@apple.com>
This commit is contained in:
@@ -5,8 +5,8 @@ const semver = require("semver");
|
||||
import fs from "fs/promises";
|
||||
const path = require("path");
|
||||
|
||||
const { loadPages } = require("./src/lib/ecosystem/loadPages");
|
||||
const { loadRules } = require("./src/lib/projects/regal/loadRules");
|
||||
import { loadPages } from "./src/lib/ecosystem/loadPages.js";
|
||||
import { loadRules } from "./src/lib/projects/regal/loadRules.js";
|
||||
|
||||
const baseUrl = "/";
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import fs from "fs/promises";
|
||||
import { matter } from "md-front-matter";
|
||||
import path from "path";
|
||||
|
||||
const { glob } = require("glob");
|
||||
import { glob } from "glob";
|
||||
|
||||
export async function loadPages(globPattern) {
|
||||
const files = await glob(globPattern);
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ command = "make netlify-latest"
|
||||
edge_functions = "docs/functions"
|
||||
|
||||
[build.environment]
|
||||
NODE_VERSION = "22.15.0"
|
||||
NODE_VERSION = "22.16.0"
|
||||
# some examples in v1/test/cases/testdata/v0/cryptox509* flag the netlify
|
||||
# secret scan
|
||||
SECRETS_SCAN_OMIT_PATHS = "v1/test/cases,v1/topdown/crypto_test.go"
|
||||
|
||||
Reference in New Issue
Block a user