Skip to content

Commit

Permalink
Merge pull request #622 from processing/fix/cdn-url
Browse files Browse the repository at this point in the history
Make library URL fall back to CDN
  • Loading branch information
davepagurek authored Nov 2, 2024
2 parents 41a76fc + 6bd6f27 commit 3ac5e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/globals/globals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 3ac5e0f

Please sign in to comment.