File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 41
41
/**
42
42
* A list of environment keys that should be removed from the
43
43
* .env file when the application is bundled for production.
44
+ * You may use wildcards to match multiple keys.
44
45
*/
45
- 'cleanup_env_keys ' => [],
46
+ 'cleanup_env_keys ' => [
47
+ 'AWS_* ' ,
48
+ 'DO_SPACES_* ' ,
49
+ '*_SECRET ' ,
50
+ 'NATIVEPHP_UPDATER_PATH ' ,
51
+ 'NATIVEPHP_APPLE_ID ' ,
52
+ 'NATIVEPHP_APPLE_ID_PASS ' ,
53
+ 'NATIVEPHP_APPLE_TEAM_ID ' ,
54
+ ],
46
55
47
56
/**
48
57
* The NativePHP updater configuration.
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ protected function cleanUpEnvFile(string $appPath): void
55
55
->filter (function (string $ line ) use ($ cleanUpKeys ) {
56
56
$ key = Str::before ($ line , '= ' );
57
57
58
- return ! in_array ( $ key , $ cleanUpKeys );
58
+ return ! Str:: is ( $ cleanUpKeys , $ key );
59
59
})
60
60
->join ("\n" );
61
61
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public function configurePackage(Package $package): void
20
20
->name ('nativephp ' )
21
21
->hasCommands ([
22
22
MigrateCommand::class,
23
+ MinifyApplicationCommand::class,
23
24
])
24
25
->hasConfigFile ()
25
26
->hasRoute ('api ' )
@@ -37,7 +38,6 @@ public function packageRegistered()
37
38
if (config ('nativephp-internal.running ' )) {
38
39
Artisan::starting (function ($ artisan ) {
39
40
$ artisan ->resolveCommands ([
40
- MinifyApplicationCommand::class,
41
41
LoadStartupConfigurationCommand::class,
42
42
LoadPHPConfigurationCommand::class,
43
43
]);
You can’t perform that action at this time.
0 commit comments