diff --git a/docs/guide/server-side-setup.md b/docs/guide/server-side-setup.md index 510c5f0..536995e 100644 --- a/docs/guide/server-side-setup.md +++ b/docs/guide/server-side-setup.md @@ -116,14 +116,44 @@ First, setup the root template that will be loaded on the first page visit. This + <%= content_for(:title) || "Inertia Rails Poc" %> + + + + <%= csrf_meta_tags %> <%= csp_meta_tag %> + <%= yield :head %> + + <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> + <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> + + + + + <%= inertia_ssr_head %> <%# If you want to use React add `vite_react_refresh_tag` %> <%= vite_client_tag %> + + <%# Includes all stylesheet files in app/assets/stylesheets %> + <%= stylesheet_link_tag :app %> + + <%= vite_typescript_tag "inertia" %> + <%= vite_stylesheet_tag "application" %> <%= vite_javascript_tag 'application' %> + + @@ -138,11 +168,28 @@ First, setup the root template that will be loaded on the first page visit. This + <%= content_for(:title) || "Inertia Rails Poc" %> + + + + <%= csrf_meta_tags %> <%= csp_meta_tag %> + <%= yield :head %> + + <%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %> + <%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %> + + + + + <%= inertia_ssr_head %> + <%# Includes all stylesheet files in app/assets/stylesheets %> + <%= stylesheet_link_tag :app %> + <%= stylesheet_pack_tag 'application' %> <%= javascript_pack_tag 'application', defer: true %>