Skip to content

Commit

Permalink
fixing process not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Dec 26, 2022
1 parent a20779c commit 2a95d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body>
<div id="app"></div>
<!-- Set `__static` path to static files in production -->
<% if (!require('process').browser) { %>
<% if (!process.browser) { %>
<script>
if (process.env.NODE_ENV !== 'development') window.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
</script>
Expand Down

0 comments on commit 2a95d91

Please sign in to comment.