diff --git a/Application.cfc b/Application.cfc index 8beb096..ffa85db 100644 --- a/Application.cfc +++ b/Application.cfc @@ -5,7 +5,7 @@ - + - + diff --git a/Island.cfm b/Island.cfm index cfca7c5..ab6269b 100644 --- a/Island.cfm +++ b/Island.cfm @@ -43,10 +43,10 @@ if (!structKeyExists(attributes.framework, "render") || !isCustomFunction(attrib } // --- resolve config (lazy fallback if Application.cfc didn't wire it) -if (!structKeyExists(application, "islandConfig")) { - application.islandConfig = new coldspa.IslandConfig().get(); +if (!structKeyExists(application, "coldspaConfig")) { + application.coldspaConfig = new coldspa.ColdspaConfig().get(); } -cfg = application.islandConfig; +cfg = application.coldspaConfig; // --- resolve asset path (dev: vite server URL; prod: manifest lookup) function resolveAsset(required string path) { diff --git a/cfproject.md b/cfproject.md index 62ffd7c..ddb4912 100644 --- a/cfproject.md +++ b/cfproject.md @@ -96,7 +96,7 @@ Mirrors Astro's client directives: --- -## Configuration System (`IslandConfig.cfc`) +## Configuration System (`ColdspaConfig.cfc`) A singleton CFC that owns all config resolution with the following precedence: @@ -120,8 +120,8 @@ CF_ENV environment variable ← highest priority (CI/CD, Docker) ### Lifecycle - Loaded once in `Application.cfc` `onApplicationStart()` into - `application.islandConfig` -- Saving via the Admin UI busts `application.islandConfig` immediately so + `application.coldspaConfig` +- Saving via the Admin UI busts `application.coldspaConfig` immediately so changes take effect without a server restart ### `coldspa.config.json` @@ -143,7 +143,7 @@ CF_ENV environment variable ← highest priority (CI/CD, Docker) content-hashed filename Resolved via a `resolveAsset(path)` utility inside `cf_Island.cfm`, using -`application.islandConfig` to determine mode. +`application.coldspaConfig` to determine mode. ### Build Behavior diff --git a/coldspa/IslandConfig.cfc b/coldspa/ColdspaConfig.cfc similarity index 97% rename from coldspa/IslandConfig.cfc rename to coldspa/ColdspaConfig.cfc index 9fcb88b..09c3809 100644 --- a/coldspa/IslandConfig.cfc +++ b/coldspa/ColdspaConfig.cfc @@ -1,6 +1,6 @@ - + diff --git a/coldspa/renderers/Vue.cfm b/coldspa/renderers/Vue.cfm index f862fb8..51ff04c 100644 --- a/coldspa/renderers/Vue.cfm +++ b/coldspa/renderers/Vue.cfm @@ -13,7 +13,7 @@ Vue = { * diagnostic info in dev mode. */ "ssrRender": function(componentGlobKey, props) { - var ssrUrl = (application.islandConfig.ssrUrl ?: "http://127.0.0.1:5174") + var ssrUrl = (application.coldspaConfig.ssrUrl ?: "http://127.0.0.1:5174") & "/render/vue"; var payload = serializeJSON({ "componentPath": arguments.componentGlobKey, diff --git a/index.cfm b/index.cfm index f405894..f69e8b5 100644 --- a/index.cfm +++ b/index.cfm @@ -26,8 +26,8 @@

- Mode: #(application.islandConfig.isDev ? "development" : "production")# - | Vite port: #application.islandConfig.vitePort# + Mode: #(application.coldspaConfig.isDev ? "development" : "production")# + | Vite port: #application.coldspaConfig.vitePort#

\ No newline at end of file