From 5b07c2f3b5d12bb3d0fae1e9b20bc41c405fac7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Kapit=C3=A1ny?= Date: Tue, 5 Mar 2024 22:03:39 +0100 Subject: [PATCH] fix: createManifestValidator failing because schemastore.org is returning 503 (#183) --- packages/vite-plugin-web-extension/src/manifest-validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite-plugin-web-extension/src/manifest-validation.ts b/packages/vite-plugin-web-extension/src/manifest-validation.ts index f511ad2d..4061e9be 100644 --- a/packages/vite-plugin-web-extension/src/manifest-validation.ts +++ b/packages/vite-plugin-web-extension/src/manifest-validation.ts @@ -5,7 +5,7 @@ import { inspect } from "node:util"; import Ajv from "ajv"; import { withTimeout } from "./utils"; -const SCHEMA_URL = new URL("https://json.schemastore.org/chrome-manifest"); +const SCHEMA_URL = new URL("https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/chrome-manifest.json"); export type ValidateManifest = (manifest: any | undefined) => Promise;