Skip to content

Commit

Permalink
revert prod-build-only
Browse files Browse the repository at this point in the history
This reverts commit a635018.
  • Loading branch information
dwelle committed Sep 30, 2023
1 parent d27af2e commit 7053f84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
NODE_ENV=production
VITE_APP_BACKEND_V2_GET_URL=https://json.excalidraw.com/api/v2/
VITE_APP_BACKEND_V2_POST_URL=https://json.excalidraw.com/api/v2/post/

Expand Down
9 changes: 8 additions & 1 deletion src/packages/excalidraw/main.js
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
module.exports = require("./dist/excalidraw.production.min.js");
if (
process.env.NODE_ENV === "production" ||
window.__excalidraw_env__ === "production"
) {
module.exports = require("./dist/excalidraw.production.min.js");
} else {
module.exports = require("./dist/excalidraw.development.js");
}

0 comments on commit 7053f84

Please sign in to comment.