You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 [
/*
|--------------------------------------------------------------------------
| Shortcuts
|--------------------------------------------------------------------------
|
| Define which shortcuts will activate Spotlight CTRL / CMD + key
| The default is CTRL/CMD + K or CTRL/CMD + /
|
*/
'shortcuts' => [
'k',
'slash',
],
/*
|--------------------------------------------------------------------------
| Commands
|--------------------------------------------------------------------------
|
| Define which commands you want to make available in Spotlight.
| Alternatively, you can also register commands in your AppServiceProvider
| with the Spotlight::registerCommand(Logout::class); method.
|
*/
'commands' => [
App\Spotlight\SearchVehicle::class
],
/*
|--------------------------------------------------------------------------
| Include CSS
|--------------------------------------------------------------------------
|
| Spotlight uses TailwindCSS, if you don't use TailwindCSS you will need
| to set this parameter to true. This includes the modern-normalize css.
|
*/
'include_css' => false,
/*
|--------------------------------------------------------------------------
| Include JS
|--------------------------------------------------------------------------
|
| Spotlight will inject the required Javascript in your blade template.
| If you want to bundle the required Javascript you can set this to false,
| call 'npm install fuse.js' or 'yarn add fuse.js',
| then add `require('vendor/livewire-ui/spotlight/resources/js/spotlight');`
| to your script bundler like webpack.
|
*/
'include_js' => true,
Activity
PhiloNL commentedon Dec 19, 2022
Any chance you are using Laravel Octane?
cloudstudio commentedon Dec 20, 2022
Hello @PhiloNL yes! using Laravel Octane, is because of this ?
PhiloNL commentedon Dec 20, 2022
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:
I'll see if I can test this later this week.
cloudstudio commentedon Dec 23, 2022
Let me know if I can help testing it, thanks !
Krato commentedon Feb 24, 2023
Any update?