mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
Stop the bootstrap scripts claiming the dev webapp targets the local backend
It never has: setDevelopment() is commented out in main.tsx, so the dev server falls through to its /v1 proxy at api.storyteller.ai. Both bootstrap epilogues and the seed script now say so and print the VITE_DEV_API_HOST needed to actually reach the local backend.
This commit is contained in:
1 parent
07e9a35044
commit
b9ee643bf6
3 files changed
+10
-7
No files matched your search
@@ -19,7 +19,8 @@
|
||||
# After it succeeds:
|
||||
# .\script\bootstrap\windows\run_backend_dev.ps1 # API on :12345
|
||||
# .\script\bootstrap\windows\seed_demo_user.ps1 # demo login
|
||||
# cd frontend; npx nx dev artcraft-webapp # webapp on :4201
|
||||
# cd frontend; npx nx dev artcraft-webapp # webapp on :4201, but see
|
||||
# # VITE_DEV_API_HOST below
|
||||
param(
|
||||
[switch]$Yes,
|
||||
[switch]$SkipTools,
|
||||
@@ -457,8 +458,9 @@ The dev stack is bootstrapped. Next steps:
|
||||
.\script\bootstrap\windows\seed_demo_user.ps1
|
||||
Credentials: $DemoUsername / $DemoPassword
|
||||
|
||||
3. Start the webapp (binds http://localhost:4201; in dev it talks to
|
||||
$DevBackendUrl automatically):
|
||||
3. Start the webapp (binds http://localhost:4201). NB: by default the dev
|
||||
webapp proxies to PRODUCTION - aim it at your backend explicitly:
|
||||
`$env:VITE_DEV_API_HOST = "$DevBackendUrl"
|
||||
cd frontend; npx nx dev artcraft-webapp
|
||||
|
||||
Health checks at any time:
|
||||
|
||||
Reference in new issue
Block a user