From d9d0e592163714bd10b4c1d56eb2c073d4d41f08 Mon Sep 17 00:00:00 2001 From: Adrian Salceanu Date: Tue, 20 Feb 2024 06:58:05 +0100 Subject: [PATCH] Implement support for Genie cdn config --- Project.toml | 4 ++-- src/GenieFramework.jl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 25936a0..f362c3f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "GenieFramework" uuid = "a59fdf5c-6bf0-4f5d-949c-a137c9e2f353" authors = ["Adrian Salceanu and contributors"] -version = "2.0.0" +version = "2.1.0" [deps] GarishPrint = "b0ab02a7-8576-43f7-aa76-eaa7c3897c54" @@ -17,7 +17,7 @@ StippleUI = "a3c5d34a-b254-4859-a8fa-b86abb7e84a3" [compat] GarishPrint = "0.5" -Genie = "5.23.8" +Genie = "5.25.0" GenieAutoReload = "2.2.3" GenieDevTools = "2.8.4" GeniePackageManager = "1.1.0" diff --git a/src/GenieFramework.jl b/src/GenieFramework.jl index afbbe3b..53d9f84 100644 --- a/src/GenieFramework.jl +++ b/src/GenieFramework.jl @@ -28,7 +28,7 @@ if Genie.Configuration.isdev() @reexport using GeniePackageManager end -# Address conflicts - this is disgusting but necessary +# Address conflicts - this is ugly but necessary # TODO: Refactor layout exports in next breaking release (v1) # Both Stipple and StippleUI export layout const q__layout = StippleUI.Layouts.layout @@ -70,9 +70,9 @@ macro genietools() end end - if Genie.Configuration.isprod() + if Genie.Configuration.isprod() && Genie.config.cdn_enabled try - Genie.Assets.assets_config!([Genie, Stipple, StippleUI, StipplePlotly], host = "https://cdn.statically.io/gh/GenieFramework") + Genie.Assets.assets_config!([Genie, Stipple, StippleUI, StipplePlotly], host = Genie.config.cdn_url) catch ex @error ex end