Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 73a8c09

Browse files
committed
made isStatic a closure
1 parent ccb916e commit 73a8c09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/plugin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Vue from 'vue'
22

33
const { join } = require('path')
44

5+
const isStatic = process.env.STATIC
56
const options = <%= JSON.stringify(options) %>
67
const mdComps = {}
78

@@ -33,7 +34,7 @@ export default ({ app, isServer, isClient, hotReload, route }) => {
3334
const isNotContentReq = hotReload || route.fullPath.includes('__webpack_hmr?') || route.fullPath.includes('.hot-update.')
3435
if (isNotContentReq) return
3536

36-
const isAPI = isServer || !process.env.STATIC
37+
const isAPI = isServer || !isStatic
3738
const cache = {}
3839

3940
async function fetchContent (path, permalink, query = '') {

0 commit comments

Comments
 (0)