File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,4 +43,6 @@ void createInertiaApp({
4343} )
4444
4545// This will set light / dark mode on load...
46- initializeTheme ( )
46+ if ( typeof localStorage !== "undefined" ) {
47+ initializeTheme ( )
48+ }
Original file line number Diff line number Diff line change 11/**
2- * @file Generated by js-routes 2.3.6. Based on Rails 8.1.2 routes of ReactStarterKit::Application.
2+ * @file Generated by js-routes 2.3.6. Based on Rails 8.1.3 routes of ReactStarterKit::Application.
33 * @version 743c630cafd479b5d9ad42a7803e8be1fdeb9448419ce21d215b267e2b0ae749
44 * @see https://github.com/railsware/js-routes
55 */
Original file line number Diff line number Diff line change 11/**
2- * @file Generated by js-routes 2.3.6. Based on Rails 8.1.2 routes of ReactStarterKit::Application.
2+ * @file Generated by js-routes 2.3.6. Based on Rails 8.1.3 routes of ReactStarterKit::Application.
33 * @version 743c630cafd479b5d9ad42a7803e8be1fdeb9448419ce21d215b267e2b0ae749
44 * @see https://github.com/railsware/js-routes
55 */
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "all" : {
33 "sourceCodeDir" : " app/frontend" ,
4+ "ssrEntrypoint" : " ~/entrypoints/inertia.tsx" ,
45 "watchAdditionalPaths" : []
56 },
67 "development" : {
Original file line number Diff line number Diff line change 2020 "dependencies" : {
2121 "@headlessui/react" : " ^2.2.0" ,
2222 "@inertiajs/react" : " ^3.0" ,
23- "@inertiajs/vite" : " ^3.0" ,
23+ "@inertiajs/vite" : " ^3.0.0 " ,
2424 "@radix-ui/react-avatar" : " ^1.1.10" ,
2525 "@radix-ui/react-checkbox" : " ^1.3.3" ,
2626 "@radix-ui/react-collapsible" : " ^1.1.12" ,
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ import react from "@vitejs/plugin-react"
44import { defineConfig } from "vite"
55import RubyPlugin from "vite-plugin-ruby"
66
7- export default defineConfig ( {
8- ssr : {
9- // prebuilds ssr.js so we can drop node_modules from the resulting container
10- noExternal : true ,
11- } ,
7+ export default defineConfig ( ( { command } ) => ( {
8+ ssr :
9+ command === "build"
10+ ? { noExternal : true } // prebuild ssr.js so we can drop node_modules from the container
11+ : undefined ,
1212 plugins : [
1313 react ( {
1414 babel : {
@@ -17,6 +17,10 @@ export default defineConfig({
1717 } ) ,
1818 tailwindcss ( ) ,
1919 RubyPlugin ( ) ,
20- inertia ( ) ,
20+ inertia ( {
21+ ssr : {
22+ entry : "./entrypoints/inertia.tsx" ,
23+ } ,
24+ } ) ,
2125 ] ,
22- } )
26+ } ) )
You can’t perform that action at this time.
0 commit comments