8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f069a commit 8fae476Copy full SHA for 8fae476
template/src/index.ejs
@@ -13,9 +13,11 @@
13
<body>
14
<div id="app"></div>
15
<!-- Set `__static` path to static files in production -->
16
- <script>
17
- if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
18
- </script>
+ <% if (!process.browser) { %>
+ <script>
+ if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
19
+ </script>
20
+ <% } %>
21
22
<!-- webpack builds are automatically injected -->
23
</body>
0 commit comments