Issue with deployments after adding viteTheme() to Panel
It seems that adding
viteTheme()
to the Panel throws an error during fresh CI/CD deployment.
Am I doing something wrong, or does this mean I should be doing npm ci ; npm run build
before composer install now?2 Replies
Is it during tests?
Try adding
$this->withoutVite();
to the setUp()
method in TestCase
It is not. It is during a fresh deployment with a tool like Deployer or Laravel Envoyer. Or really during any fresh setup of the application.
This is due to
viteTheme()
looking for the Vite manifest file. I have solved for this by changing my deployment process to work like this:
With my composer.json
scripts looking like:
To keep local functionality the same, but avoid this issue during deployments