Smeltery
Get started

Deployment

v0.1

React and Vue apps

  • smeltery build runs npm run build, which writes public/build/ (the hashed JavaScript and CSS and manifest.json); deploy it with public/. The server needs no Node.js, no node_modules/ and no resources/js/. A release binary started without public/build/manifest.json logs 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 409 with X-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 the XSRF-TOKEN cookie gets Secure when APP_URL starts with https://.
  • Every web response sets the XSRF-TOKEN cookie, so every visitor gets a session, anonymous visitors and bots included; with SESSION_DRIVER=database that is one row in sessions per visitor without a cookie (expired rows are removed as with any session).

↑↓ moveEnter openEsc close