From 0ee4c2c4b83effa5432182b28524cd59e3eddf79 Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 31 Dec 2024 16:11:54 -0700 Subject: [PATCH] add raw everywhere --- .../experimental/demo/hello_world_http_server/package.json | 2 +- .../end_to_end/http_server/express/src/frontend/index.ts | 2 +- .../test/end_to_end/http_server/fetch_ic/package.json | 2 +- .../end_to_end/http_server/internet_identity/package.json | 2 +- .../end_to_end/http_server/sqlite/batch_create_users.sh | 2 +- .../http_server/sqlite_drizzle/batch_create_users.sh | 2 +- .../http_server/sqlite_typeorm/batch_create_users.sh | 2 +- .../candid_rpc/canister_methods/http_request/test/fletch.ts | 4 ++-- .../candid_rpc/canister_methods/http_request/test/fletch.ts | 4 ++-- .../canister_methods/http_request_update/test/fletch.ts | 4 ++-- the_azle_book/src/authentication.md | 2 +- the_azle_book/src/deployment.md | 6 +++--- the_azle_book/src/servers.md | 2 +- 13 files changed, 18 insertions(+), 18 deletions(-) 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