Skip to content

Commit 3ac5e0f

Browse files
authored
Merge pull request #622 from processing/fix/cdn-url
Make library URL fall back to CDN
2 parents 41a76fc + 6bd6f27 commit 3ac5e0f

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)