diff --git a/composer.json b/composer.json index 59310346..8a5547bf 100644 --- a/composer.json +++ b/composer.json @@ -118,11 +118,11 @@ "@auto-scripts" ], "post-root-package-install": [ + "@php -r \"file_put_contents('.gitignore', str_replace(['composer.lock' . PHP_EOL, 'package-lock.json' . PHP_EOL, 'yarn.lock' . PHP_EOL, 'bun.lockb' . PHP_EOL, 'pnpm-lock.yaml' . PHP_EOL], '', file_get_contents('.gitignore')));\"", "@php -r \"file_put_contents('.env.local', 'APP_ENV=dev' . PHP_EOL);\"", "@php -r \"file_put_contents('.env', str_replace('APP_SECRET=\\'\\$ecretf0rt3st\\'', 'APP_SECRET=' . bin2hex(random_bytes(16)), file_get_contents('.env')));\"" ], "post-create-project-cmd": [ - "@php -r \"file_put_contents('.gitignore', str_replace(['composer.lock' . PHP_EOL, 'package-lock.json' . PHP_EOL, 'yarn.lock' . PHP_EOL, 'bun.lockb' . PHP_EOL, 'pnpm-lock.yaml' . PHP_EOL], '', file_get_contents('.gitignore')));\"", "@php bin/adminconsole sulu:admin:info --ansi" ], "serve": [ diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index ceea7e3a..f3f438ea 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -17,3 +17,7 @@ when@test: test: true session: storage_factory_id: session.storage.factory.mock_file + +when@stage: + framework: + disallow_search_engine_index: true