mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 20:19:33 +01:00
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import { defineNuxtPlugin } from '#app'
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
// if (process.server) {
|
|
// nuxtApp.hooks.hook('app:rendered', () => {
|
|
// nuxtApp.ssrContext['']
|
|
// })
|
|
// }
|
|
|
|
// if (process.client) {
|
|
// nuxtApp.hooks.hook('app:created', () => {
|
|
// console.log('app:created')
|
|
// })
|
|
// }
|
|
if (nuxtApp.ssrContext)
|
|
console.log('hello', nuxtApp.ssrContext)
|
|
})
|