default launch scripts to dev server

This commit is contained in:
Hanashi
2026-08-08 19:16:32 -04:00
parent 480c073c54
commit 2cfcb6131d
3 changed files with 112 additions and 190 deletions
+88 -168
View File
File diff suppressed because it is too large Load Diff
+12 -11
View File
@@ -24,17 +24,18 @@ frontend_npm_install
export VITE_ENVIRONMENT_TYPE="production"
# Backend devs: launch with USE_LOCAL_API=1 (or `export USE_LOCAL_API=1` once
# in your shell profile) to point the frontend at a local storyteller-web on
# http://localhost:12345. Unset/0 — the frontend-dev default — hits
# production. This replaces the comment/uncomment dance around
# StorytellerApiHostStore.setDevelopment() in src/main.tsx.
export VITE_USE_LOCAL_API="${USE_LOCAL_API:-0}"
if [[ "${VITE_USE_LOCAL_API}" == "1" ]]; then
echo "USE_LOCAL_API=1 — API calls will target http://localhost:12345"
else
echo "API calls will target production (set USE_LOCAL_API=1 for a local backend)"
fi
# # Backend devs: launch with USE_LOCAL_API=1 (or `export USE_LOCAL_API=1` once
# # in your shell profile) to point the frontend at a local storyteller-web on
# # http://localhost:12345. Unset/0 — the frontend-dev default — hits
# # production. This replaces the comment/uncomment dance around
# # StorytellerApiHostStore.setDevelopment() in src/main.tsx.
# export VITE_USE_LOCAL_API="${USE_LOCAL_API:-0}"
# if [[ "${VITE_USE_LOCAL_API}" == "1" ]]; then
# echo "USE_LOCAL_API=1 — API calls will target http://localhost:12345"
# else
# echo "API calls will target production (set USE_LOCAL_API=1 for a local backend)"
# fi
export VITE_USE_LOCAL_API="true"
nx dev artcraft-webapp
+12 -11
View File
@@ -24,17 +24,18 @@ frontend_npm_install
export VITE_ENVIRONMENT_TYPE="production"
# Backend devs: launch with USE_LOCAL_API=1 (or `export USE_LOCAL_API=1` once
# in your shell profile) to point the frontend at a local storyteller-web on
# http://localhost:12345. Unset/0 — the frontend-dev default — hits
# production. This replaces the comment/uncomment dance around
# StorytellerApiHostStore.setDevelopment() in src/main.tsx.
export VITE_USE_LOCAL_API="${USE_LOCAL_API:-0}"
if [[ "${VITE_USE_LOCAL_API}" == "1" ]]; then
echo "USE_LOCAL_API=1 — API calls will target http://localhost:12345"
else
echo "API calls will target production (set USE_LOCAL_API=1 for a local backend)"
fi
# # Backend devs: launch with USE_LOCAL_API=1 (or `export USE_LOCAL_API=1` once
# # in your shell profile) to point the frontend at a local storyteller-web on
# # http://localhost:12345. Unset/0 — the frontend-dev default — hits
# # production. This replaces the comment/uncomment dance around
# # StorytellerApiHostStore.setDevelopment() in src/main.tsx.
# export VITE_USE_LOCAL_API="${USE_LOCAL_API:-0}"
# if [[ "${VITE_USE_LOCAL_API}" == "1" ]]; then
# echo "USE_LOCAL_API=1 — API calls will target http://localhost:12345"
# else
# echo "API calls will target production (set USE_LOCAL_API=1 for a local backend)"
# fi
export VITE_USE_LOCAL_API="true"
nx dev artcraft-website