Skip to content

Commit 6bd6f27

Browse files
committed
Make library URL fall back to CDN
1 parent 41a76fc commit 6bd6f27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/globals/globals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ export const sketchesPerPage = 12 as const;
1414
export const eventsPerPage = 12 as const;
1515

1616
export const cdnLibraryUrl =
17-
`/p5.min.js` as const;
18-
// `https://cdn.jsdelivr.net/npm/p5@${p5Version}/lib/p5.min.js` as const;
17+
process.env.P5_LIBRARY_PATH ||
18+
`https://cdn.jsdelivr.net/npm/p5@${p5Version}/lib/p5.min.js` as const;
1919
export const fullDownloadUrl =
2020
`https://github.com/processing/p5.js/releases/download/v${p5Version}/p5.zip` as const;
2121
export const libraryDownloadUrl =

0 commit comments

Comments
 (0)