Skip to content

Commit

Permalink
temp: force production build
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Sep 10, 2023
1 parent 46306b8 commit 726bb1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
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: 1 addition & 8 deletions src/packages/excalidraw/main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
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");
}
module.exports = require("./dist/excalidraw.production.min.js");

0 comments on commit 726bb1f

Please sign in to comment.