From c3227b34268e82d7606ab2b68834a52896103437 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 15 Sep 2026 20:52:24 +0530 Subject: [PATCH 1/2] feat: add Jaspr SSR framework support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a jaspr entry to frameworks.php, reusing the flutter-3.44 runtime image. Matches the open-runtimes helper scripts merged in open-runtimes/open-runtimes#563 (dart pub get / jaspr build / helpers/jaspr/server.sh, output at ./build/jaspr). Only an ssr adapter is defined — no static adapter and no site.php template, since neither is wired up on the open-runtimes side yet. --- app/config/frameworks.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/config/frameworks.php b/app/config/frameworks.php index 9ac15ac80c..2e26fb16c1 100644 --- a/app/config/frameworks.php +++ b/app/config/frameworks.php @@ -323,6 +323,22 @@ return [ ], ], ], + 'jaspr' => [ + 'key' => 'jaspr', + 'name' => 'Jaspr', + 'screenshotSleep' => 3000, + 'buildRuntime' => 'flutter-3.44', + 'runtimes' => $templateRuntimes['FLUTTER'], + 'adapters' => [ + 'ssr' => [ + 'key' => 'ssr', + 'buildCommand' => 'dart run jaspr_cli:jaspr build', + 'installCommand' => 'dart pub get', + 'outputDirectory' => './build/jaspr', + 'startCommand' => 'bash helpers/jaspr/server.sh', + ], + ], + ], 'react-native' => [ 'key' => 'react-native', 'name' => 'React Native', From ce8c7c2328c6d0bdca1f4e44b522bd226c9b2424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sat, 19 Sep 2026 13:59:42 +0200 Subject: [PATCH 2/2] fix: use preinstalled Jaspr CLI for build command `dart run jaspr_cli:jaspr build` only resolves jaspr_cli from the project's own dependency graph, and `jaspr create` does not add it to pubspec.yaml -- Jaspr treats the CLI as part of the environment. A stock Jaspr project therefore failed to build with: Could not find package `jaspr_cli` or file `jaspr_cli:jaspr` The Flutter runtime now preinstalls the CLI and puts it on PATH (open-runtimes/open-runtimes#572), so the plain binary is the correct call. Co-Authored-By: Claude Opus 5 (1M context) --- app/config/frameworks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/frameworks.php b/app/config/frameworks.php index 2e26fb16c1..ad0f49a668 100644 --- a/app/config/frameworks.php +++ b/app/config/frameworks.php @@ -332,7 +332,7 @@ return [ 'adapters' => [ 'ssr' => [ 'key' => 'ssr', - 'buildCommand' => 'dart run jaspr_cli:jaspr build', + 'buildCommand' => 'jaspr build', 'installCommand' => 'dart pub get', 'outputDirectory' => './build/jaspr', 'startCommand' => 'bash helpers/jaspr/server.sh',