From 6bd6f27c1884dbbacbe9a6d2c939e94326c5e1ec Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sat, 2 Nov 2024 08:48:16 -0400 Subject: [PATCH] Make library URL fall back to CDN --- src/globals/globals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/globals/globals.ts b/src/globals/globals.ts index 7c7a92513b..2407c8367a 100644 --- a/src/globals/globals.ts +++ b/src/globals/globals.ts @@ -14,8 +14,8 @@ export const sketchesPerPage = 12 as const; export const eventsPerPage = 12 as const; export const cdnLibraryUrl = - `/p5.min.js` as const; - // `https://cdn.jsdelivr.net/npm/p5@${p5Version}/lib/p5.min.js` as const; + process.env.P5_LIBRARY_PATH || + `https://cdn.jsdelivr.net/npm/p5@${p5Version}/lib/p5.min.js` as const; export const fullDownloadUrl = `https://github.com/processing/p5.js/releases/download/v${p5Version}/p5.zip` as const; export const libraryDownloadUrl =