Skip to content

Commit cb82756

Browse files
committed
chore: delete SSR
1 parent 36f54c1 commit cb82756

File tree

4 files changed

+3
-32
lines changed

4 files changed

+3
-32
lines changed

config/inertia.ts

-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ const inertiaConfig = defineConfig({
1313
sharedData: {
1414
errors: (ctx) => ctx.inertia.always(() => ctx.session?.flashMessages.get('errors')),
1515
},
16-
17-
/**
18-
* Options for the server-side rendering
19-
*/
20-
ssr: {
21-
enabled: true,
22-
entrypoint: 'inertia/app/ssr.ts',
23-
},
2416
})
2517

2618
export default inertiaConfig

inertia/app/app.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { updatePreset } from '@primevue/themes'
77
import Aura from '@primevue/themes/aura'
88
import PrimeVue from 'primevue/config'
99
import type { DefineComponent } from 'vue'
10-
import { createSSRApp, h } from 'vue'
10+
import { createApp, h } from 'vue'
1111
import '../css/app.css'
1212

1313
const appName = import.meta.env.VITE_APP_NAME || 'AdonisJS'
@@ -25,7 +25,7 @@ createInertiaApp({
2525
},
2626

2727
setup({ el, App, props, plugin }) {
28-
createSSRApp({ render: () => h(App, props) })
28+
createApp({ render: () => h(App, props) })
2929
.use(plugin)
3030
.use(PrimeVue, {
3131
theme: {

inertia/app/ssr.ts

-21
This file was deleted.

vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import adonisjs from '@adonisjs/vite/client'
66

77
export default defineConfig({
88
plugins: [
9-
inertia({ ssr: { enabled: true, entrypoint: 'inertia/app/ssr.ts' } }),
9+
inertia({}),
1010
vue(),
1111
adonisjs({ entrypoints: ['inertia/app/app.ts'], reload: ['resources/views/**/*.edge'] }),
1212
],

0 commit comments

Comments
 (0)