Skip to content

Commit

Permalink
Fixed GH Pages builds
Browse files Browse the repository at this point in the history
  • Loading branch information
vloothuis committed Oct 14, 2023
1 parent 3a428c0 commit 119f8d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
version: v0.7.8

- name: Build release
run: earthly +release
run: earthly +release --build_type=standalone

- name: Unpack release
run: unzip release.zip -d build
Expand Down
2 changes: 2 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ build-py:
release:
BUILD +build-py
ARG release_tag=release
ARG build_type=release
FROM +setup-base
ENV REACT_APP_BUILD=$build_type
RUN apt-get update && apt install -y zip
COPY +build-py/dist/* public/
RUN npm run build:css
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const run = (system: Storage): void => {
assembly.processingEngine.start()
}

if (process.env.NODE_ENV === 'production') {
if (process.env.REACT_APP_BUILD!=='standalone' && process.env.NODE_ENV === 'production') {
// Setup embedded mode (requires to be embedded in iFrame)
console.log('Initializing storage system')
LiveStorage.create(window, run)
Expand Down

0 comments on commit 119f8d6

Please sign in to comment.