diff --git a/examples/experimental/demo/hello_world_http_server/package.json b/examples/experimental/demo/hello_world_http_server/package.json index 6f56fab029..006f6d2e3b 100644 --- a/examples/experimental/demo/hello_world_http_server/package.json +++ b/examples/experimental/demo/hello_world_http_server/package.json @@ -1,6 +1,6 @@ { "scripts": { - "build": "cd src/frontend && VITE_CANISTER_ORIGIN=http://$(dfx canister id backend).localhost:8000 vite build", + "build": "cd src/frontend && VITE_CANISTER_ORIGIN=http://$(dfx canister id backend).raw.localhost:8000 vite build", "pretest": "tsx test/pretest.ts", "test": "jest" }, diff --git a/examples/experimental/test/end_to_end/http_server/express/src/frontend/index.ts b/examples/experimental/test/end_to_end/http_server/express/src/frontend/index.ts index f8b96a0e93..fb2a3fa864 100644 --- a/examples/experimental/test/end_to_end/http_server/express/src/frontend/index.ts +++ b/examples/experimental/test/end_to_end/http_server/express/src/frontend/index.ts @@ -5,7 +5,7 @@ import { customElement, property } from 'lit/decorators.js'; export class AzleApp extends LitElement { canisterOrigin: string = `http://${ import.meta.env.VITE_CANISTER_ID - }.localhost:8000`; + }.raw.localhost:8000`; @property() resSendResponse: string = ''; diff --git a/examples/experimental/test/end_to_end/http_server/fetch_ic/package.json b/examples/experimental/test/end_to_end/http_server/fetch_ic/package.json index 68eee6b647..7e06a763ee 100644 --- a/examples/experimental/test/end_to_end/http_server/fetch_ic/package.json +++ b/examples/experimental/test/end_to_end/http_server/fetch_ic/package.json @@ -1,6 +1,6 @@ { "scripts": { - "build": "cd src/frontend && VITE_CANISTER_ORIGIN=http://$(dfx canister id backend).localhost:$(dfx info webserver-port) VITE_IDENTITY_PROVIDER=http://$(dfx canister id internet_identity).localhost:$(dfx info webserver-port) vite build", + "build": "cd src/frontend && VITE_CANISTER_ORIGIN=http://$(dfx canister id backend).raw.localhost:$(dfx info webserver-port) VITE_IDENTITY_PROVIDER=http://$(dfx canister id internet_identity).localhost:$(dfx info webserver-port) vite build", "pretest": "tsx test/pretest.ts", "test": "jest" }, diff --git a/examples/experimental/test/end_to_end/http_server/internet_identity/package.json b/examples/experimental/test/end_to_end/http_server/internet_identity/package.json index 68eee6b647..7e06a763ee 100644 --- a/examples/experimental/test/end_to_end/http_server/internet_identity/package.json +++ b/examples/experimental/test/end_to_end/http_server/internet_identity/package.json @@ -1,6 +1,6 @@ { "scripts": { - "build": "cd src/frontend && VITE_CANISTER_ORIGIN=http://$(dfx canister id backend).localhost:$(dfx info webserver-port) VITE_IDENTITY_PROVIDER=http://$(dfx canister id internet_identity).localhost:$(dfx info webserver-port) vite build", + "build": "cd src/frontend && VITE_CANISTER_ORIGIN=http://$(dfx canister id backend).raw.localhost:$(dfx info webserver-port) VITE_IDENTITY_PROVIDER=http://$(dfx canister id internet_identity).localhost:$(dfx info webserver-port) vite build", "pretest": "tsx test/pretest.ts", "test": "jest" }, diff --git a/examples/experimental/test/end_to_end/http_server/sqlite/batch_create_users.sh b/examples/experimental/test/end_to_end/http_server/sqlite/batch_create_users.sh index dffdd94b7a..7f5661d0ac 100755 --- a/examples/experimental/test/end_to_end/http_server/sqlite/batch_create_users.sh +++ b/examples/experimental/test/end_to_end/http_server/sqlite/batch_create_users.sh @@ -4,7 +4,7 @@ count=1000 # Change this number as needed # URL to which the POST request will be sent -url="http://$(dfx canister id sqlite).localhost:8000/users/batch/1000" +url="http://$(dfx canister id sqlite).raw.localhost:8000/users/batch/1000" # Loop as many times as specified in the count variable for ((i=0; i