From 46e767b7f85eacb75769cdde4f575010ebb5434d Mon Sep 17 00:00:00 2001 From: Hakkyung Lee <17398672+hklee93@users.noreply.github.com> Date: Wed, 27 May 2026 00:03:44 +0900 Subject: [PATCH] Removing manual sandbox param from the code --- .env.example | 3 --- docker-compose.yml | 1 - frontend/.env.development | 1 - frontend/README.md | 9 ++++----- frontend/docker/entrypoint.sh | 2 -- frontend/index.html | 8 +------- frontend/src/types/window.d.ts | 3 ++- frontend/vite.config.ts | 4 +--- 8 files changed, 8 insertions(+), 23 deletions(-) diff --git a/.env.example b/.env.example index aca8b4110..8bf3fa12a 100644 --- a/.env.example +++ b/.env.example @@ -19,9 +19,6 @@ FRONTEND_DOMAIN_NAME=frontend.example.com BACKEND_URL=https://backend.example.com BACKEND_DOMAIN_NAME=backend.example.com -# Set it to true to run the app in Pi Sandbox -SANDBOX_SDK=true - # Obtain the following 2 values on the Pi Developer Portal (https://develop.pinet.com in the Pi Browser). # Domain validation key: diff --git a/docker-compose.yml b/docker-compose.yml index f77a1161a..d949f2551 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,6 @@ services: build: ./frontend environment: BACKEND_URL: ${BACKEND_URL} - SANDBOX_SDK: ${SANDBOX_SDK} backend: build: ./backend diff --git a/frontend/.env.development b/frontend/.env.development index 215fe725f..3e81995fb 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,4 +1,3 @@ NODE_ENV=development PORT=3314 VITE_BACKEND_URL=http://localhost:8000 -VITE_SANDBOX_SDK=true diff --git a/frontend/README.md b/frontend/README.md index 4301641d1..a651e6e99 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -16,11 +16,10 @@ yarn install Set `.env.development` with the following variables: -| Variable | Description | Example | -| ------------------ | --------------------- | ----------------------- | -| `PORT` | Dev server port | `3314` | -| `VITE_BACKEND_URL` | Backend API URL | `http://localhost:8000` | -| `VITE_SANDBOX_SDK` | Enable Pi Sandbox SDK | `true` | +| Variable | Description | Example | +| ------------------ | --------------- | ----------------------- | +| `PORT` | Dev server port | `3314` | +| `VITE_BACKEND_URL` | Backend API URL | `http://localhost:8000` | ### 3. Start the development server diff --git a/frontend/docker/entrypoint.sh b/frontend/docker/entrypoint.sh index 74baf8fb8..cddbbd059 100644 --- a/frontend/docker/entrypoint.sh +++ b/frontend/docker/entrypoint.sh @@ -3,7 +3,6 @@ set -e echo "Running Vite React frontend with the following configuration:" echo "Backend URL: $BACKEND_URL" -echo "Sandbox SDK: $SANDBOX_SDK" if [ -z "$BACKEND_URL" ]; then echo "ERROR! INVALID CONFIGURATION: BACKEND_URL must be defined." @@ -13,7 +12,6 @@ fi # Replace placeholders in /var/www/webapp/index.html at runtime # Use semicolons to avoid conflicts with slashes in URLs sed -i 's;\$\$BACKEND_URL\$\$;'"${BACKEND_URL}"';g' /var/www/webapp/index.html -sed -i 's;\$\$SANDBOX_SDK\$\$;'"${SANDBOX_SDK}"';g' /var/www/webapp/index.html # Start nginx nginx -g "daemon off;" diff --git a/frontend/index.html b/frontend/index.html index a2f194aff..154f53ce8 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -18,7 +18,6 @@ @@ -26,12 +25,7 @@