Skip to content

Commit

Permalink
Merge branch 'main' into TCORE-226-Export_Device_Data
Browse files Browse the repository at this point in the history
  • Loading branch information
bgelatti authored Jan 6, 2025
2 parents b760310 + 005df2b commit 9faf65b
Show file tree
Hide file tree
Showing 51 changed files with 3,031 additions and 370 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN just install;
# Build the console
RUN just build-console;

# Build the integration
RUN just build-integration;

# Expose the necessary port
EXPOSE 8888

Expand Down
7 changes: 6 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,20 @@ build-console:
@rm -rf build/console
@cd packages/console && npm run build

build-integration:
@rm -rf plugins/tagoio-integration/build
@cd plugins/tagoio-integration && npm run build

install:
@npm ci

########################### INFRA

# The process.env is not working on Vite Build
# This is a workaround to make it work
file_path := "./node_modules/@tago-io/sdk/out/regions.js"
file_path := "./node_modules/@tago-io/sdk/lib/regions.js"
_pre-build:
@sed -i'' -e 's/ process\.env\.TAGOIO_API/ window.process.env.TAGOIO_API/g' "{{file_path}}"
@sed -i'' -e 's/ process\.env\.TAGOIO_REALTIME/ window.process.env.TAGOIO_REALTIME/g' "{{file_path}}"
@sed -i'' -e 's/ process\.env\.TAGOIO_SSE/ window.process.env.TAGOIO_SSE/g' "{{file_path}}"
@echo "SDK patched"
Loading

0 comments on commit 9faf65b

Please sign in to comment.