Deployment
v0.1
React and Vue apps
smeltery buildrunsnpm run build, which writespublic/build/(the hashed JavaScript and CSS andmanifest.json); deploy it withpublic/. The server needs no Node.js, nonode_modules/and noresources/js/. A release binary started withoutpublic/build/manifest.jsonlogs an error when it starts serving, and its pages load without their scripts.- After a deploy with new assets, open pages notice the new asset version on their next visit and load the new
build (a
409withX-Inertia-Location). - Serve the app over HTTPS: the browser encrypts the history of pages (
encrypt_history, which the kits with authentication turn on) only in a secure context, and theXSRF-TOKENcookie getsSecurewhenAPP_URLstarts withhttps://. - Every web response sets the
XSRF-TOKENcookie, so every visitor gets a session, anonymous visitors and bots included; withSESSION_DRIVER=databasethat is one row insessionsper visitor without a cookie (expired rows are removed as with any session).