Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
fix: SSR check in CSR build
Browse files Browse the repository at this point in the history
use defined __SSR_APP__ property
  • Loading branch information
yooouuri committed Aug 8, 2023
1 parent c11a6ca commit d51019b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/vue/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ export function vueSsrPlugin(): Plugin {

return {
name: 'vite-vue-ssr-plugin',
config(config, { ssrBuild }) {
ssr = ssrBuild

if (!ssrBuild) {
config(config) {
if (!config.define.__SSR_APP__) {
delete config.build.ssrManifest
delete config.ssr
}
Expand Down

0 comments on commit d51019b

Please sign in to comment.