Skip to content

Commit

Permalink
Merge pull request #8820 from turbo124/v5-develop
Browse files Browse the repository at this point in the history
Fixes for react builds
  • Loading branch information
turbo124 committed Sep 21, 2023
2 parents 20f1389 + 13ab245 commit cfd6a6c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.7.20
5.7.21
6 changes: 3 additions & 3 deletions app/Console/Commands/ReactBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ public function handle()
foreach (new \RecursiveIteratorIterator($directoryIterator) as $file) {
if ($file->getExtension() == 'js') {
if (str_contains($file->getFileName(), 'index-')) {
$includes .= '<script type="module" crossorigin src="/react/'.config('ninja.app_version').'/'.$file->getFileName().'"></script>'."\n";
$includes .= '<script type="module" crossorigin src="/react/v'.config('ninja.app_version').'/'.$file->getFileName().'"></script>'."\n";
} else {
$includes .= '<link rel="modulepreload" href="/react/'.config('ninja.app_version').'/'.$file->getFileName().'">'."\n";
$includes .= '<link rel="modulepreload" href="/react/v'.config('ninja.app_version').'/'.$file->getFileName().'">'."\n";
}
}

if (str_contains($file->getFileName(), '.css')) {
$includes .= '<link rel="stylesheet" href="/react/'.config('ninja.app_version').'/'.$file->getFileName().'">'."\n";
$includes .= '<link rel="stylesheet" href="/react/v'.config('ninja.app_version').'/'.$file->getFileName().'">'."\n";
}
}

Expand Down
4 changes: 2 additions & 2 deletions config/ninja.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION','5.7.20'),
'app_tag' => env('APP_TAG','5.7.20'),
'app_version' => env('APP_VERSION','5.7.21'),
'app_tag' => env('APP_TAG','5.7.21'),
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''),
Expand Down

0 comments on commit cfd6a6c

Please sign in to comment.