Skip to content

Commit

Permalink
fix(vue): remove isServer flag (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
galvez committed Oct 16, 2024
1 parent 7b197d0 commit a8634f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/fastify-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "index.js",
"name": "@fastify/vue",
"description": "The official @fastify/vite renderer for Vue",
"version": "1.0.0-alpha.2",
"version": "1.0.0-alpha.3",
"files": [
"plugin/index.js",
"plugin/parsers.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/fastify-vue/virtual/create.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { createApp, createSSRApp, reactive, ref } from 'vue'
import { createRouter } from 'vue-router'
import {
isServer,
createHistory,
serverRouteContext,
routeLayout,
Expand All @@ -21,6 +20,7 @@ export default async function create (ctx) {
const router = createRouter({ history, routes })
const layoutRef = ref(ctxHydration.layout ?? 'default')

const isServer = import.meta.env.SSR
instance.config.globalProperties.$isServer = isServer

instance.provide(routeLayout, layoutRef)
Expand Down

0 comments on commit a8634f0

Please sign in to comment.