Skip to content

chore: align hello_world frontend vite.config with icp-cli template#1426

Merged
raymondk merged 2 commits into
masterfrom
fix-hello-world
Jun 25, 2026
Merged

chore: align hello_world frontend vite.config with icp-cli template#1426
raymondk merged 2 commits into
masterfrom
fix-hello-world

Conversation

@raymondk

Copy link
Copy Markdown
Contributor

make the example match the cli templates.

Restructure the Motoko hello_world frontend dev server config to match the
icp-cli React template: derive both the root key and proxy target from a single
`icp network status --json` call, support ICP_ENVIRONMENT, and fail clearly when
the backend canister isn't deployed. Drops the dfx fallback (and the now-unused
loadEnv/define/optimizeDeps blocks); actor.js now resolves the canister ID from
the ic_env cookie only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@raymondk raymondk requested a review from a team as a code owner June 25, 2026 18:53
Apply the same dev server config changes as the Motoko hello_world frontend:
derive root key and proxy target from a single `icp network status --json`
call, support ICP_ENVIRONMENT, and fail clearly when the backend canister
isn't deployed. Drops the dfx fallback (and the now-unused
loadEnv/define/optimizeDeps blocks); actor.js resolves the canister ID from
the ic_env cookie only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@raymondk raymondk merged commit cd939e6 into master Jun 25, 2026
7 checks passed
@raymondk raymondk deleted the fix-hello-world branch June 25, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants