New to laravel 10 - npm run dev on production server?
Hi all,
I have just started getting back into laravel (last time I actively used it, still a beginner though, was version 5) so this is all a big difference for me.
Just going through the Whats new in 10 series and afterwards the getting started in laravel 8 series.
But my question so far is, after installing laravel with breeze scaffolding for all the auth controllers and such, I am now required to run the npm server as well, does this mean this is also required on the production server then?
What would be the best way to actually run it on the server if that's the case?
@Snapey I would prefer this too, but currently my local version will not display some of the auth pages like register if I am not also running "npc run dev"
I would assume the same thing happens if I were to push these files to the production server?
EDIT: I believe I figured it out, thank you.
I can simply run "npm run build" which will compile the files into public/build folder