generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate in production ( Laravel Vapor ) #100
Comments
Any chance you are using Laravel Octane? |
Hello @PhiloNL yes! using Laravel Octane, is because of this ? |
Yes, the following is creating a memory leak: https://github.com/wire-elements/spotlight/blob/master/src/Spotlight.php#L20 I think changing it to the following will fix it: public static function registerCommand(string $command): void
{
tap(new $command, function (SpotlightCommand $command) {
self::$commands[$command->getId()] = $command;
});
} I'll see if I can test this later this week. |
Let me know if I can help testing it, thanks ! |
Any update? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello guys! something weird is happening.
Working super super nice in local as allways, when we deploy in production, using laravel vapor + serverless this is what I see:
As you see is duplicated 3 times, this happend with all commands.
I try creating custom custom provider, or just using default livewire-ui-spotlight.php
Any ideas?
`<?php
return [
];
`
The text was updated successfully, but these errors were encountered: