From 9c593ac1ae17f1794ce9f1789b98db3d6b263e9c Mon Sep 17 00:00:00 2001 From: Michael Romer Date: Tue, 13 Feb 2024 01:09:05 -0600 Subject: [PATCH] Fix readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 896448f..802efad 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ export const { bootstrap, mount, unmount } = singleSpaBlazor({ // reverse proxy hosted on the same domain. This would help ensure that all // requests from the browser for micro-frontend assets appear to be same-origin, // thus circumventing potential CORS issues. - assetBaseUrl: 'https://mysite.com/apps/my-blazor-app/', + assetBaseUrl: new URL('https://mysite.com/apps/my-blazor-app/'), // Client-side base URL the configure on the Blazor WASM application's navigation // manager. This will be the base URL the navigation manager uses for internal @@ -100,7 +100,7 @@ export const { bootstrap, mount, unmount } = singleSpaBlazor({ // configured to activate your Blazor WASM application when the client-side URL // starts with https://mysite.com/blazor-app/, then that same URL is set on the // navigationBaseUrl property. - navigationBaseUrl: 'https://mysite.com/blazor-app/', + navigationBaseUrl: new URL('https://mysite.com/blazor-app/'), // Optional paths to additional stylesheets to include when the Blazor WASM // micro-frontend is mounted by single-spa. These paths are relative to the asset