File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
2+ # SPDX-License-Identifier: AGPL-3.0-or-later
3+ #
4+ # THIS IS AN EXPERIMENTAL FEATURE
5+ # DO NOT USE THIS IN PRODUCTION, YOU HAVE BEEN WARNED.
6+
17localhost {
28 php_server {
3- worker index.php
9+ worker {
10+ file index.php
11+ watch
12+ }
413 }
514
615 log {
Original file line number Diff line number Diff line change 9292 'vite.config.ts ' ,
9393 'vitest.config.ts ' ,
9494 'window.d.ts ' ,
95+ 'Caddyfile ' ,
9596];
9697$ actualFiles = [];
9798
Original file line number Diff line number Diff line change 2424
2525\OC ::boot ();
2626
27- function cleanupStaticCrap (): void {
27+ function resetStaticProperties (): void {
2828 // FIXME needed because these use a static var
2929 \OC_Hook::clear ();
3030 \OC_Util::$ styles = [];
@@ -38,11 +38,7 @@ function cleanupStaticCrap(): void {
3838
3939$ handler = static function () {
4040 try {
41- // In worker mode, script name is empty in FrankenPHP
42- if ($ _SERVER ['SCRIPT_NAME ' ] === '' ) {
43- $ _SERVER ['SCRIPT_NAME ' ] = $ _SERVER ['PHP_SELF ' ];
44- }
45- cleanupStaticCrap ();
41+ resetStaticProperties ();
4642 OC ::init ();
4743 OC ::handleRequest ();
4844 } catch (ServiceUnavailableException $ ex ) {
You can’t perform that action at this time.
0 commit comments