diff --git a/manifest.json b/manifest.json
index 056cbed..5567519 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"$schema": "https://developer.microsoft.com/json-schemas/teams/v1.17/MicrosoftTeams.schema.json",
"id": "d6104121-055c-41c5-b563-6e3badd90b4e",
"manifestVersion": "1.17",
- "version": "1.0.1",
+ "version": "1.0.2",
"name": {
"short": "AI emailer",
"full": "SCTG Outlook AI Add-in"
diff --git a/manifest.xml b/manifest.xml
index fb8721d..dccca16 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -5,7 +5,7 @@
xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
xsi:type="MailApp">
d6104121-055c-41c5-b563-6e3badd90b4e
- 1.0.1
+ 1.0.2
Ronan LE MEILLAT
en-US
diff --git a/src/aipane/index.tsx b/src/aipane/index.tsx
index 94145f1..2c17fd6 100644
--- a/src/aipane/index.tsx
+++ b/src/aipane/index.tsx
@@ -17,16 +17,22 @@ const root = rootElement ? createRoot(rootElement) : undefined;
// restore the original history functions
window.history.pushState = globalThis.backupHistoryFunctions.pushState;
window.history.replaceState = globalThis.backupHistoryFunctions.replaceState;
-const router = createBrowserRouter([
+const BASE_PATH = process.env.website === "GITHUB_PAGES" ? "/ai-outlook" : "/";
+const router = createBrowserRouter(
+ [
+ {
+ path: "/",
+ element: ,
+ },
+ {
+ path: "clean",
+ element: ,
+ },
+ ],
{
- path: "/",
- element: ,
- },
- {
- path: "clean",
- element: ,
- },
-]);
+ basename: BASE_PATH,
+ }
+);
/* Render application after Office initializes */
Office.onReady(() => {
diff --git a/src/version.ts b/src/version.ts
index 70f69ca..31b19f3 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1,4 +1,4 @@
export const versionInfo = {
- commit: "f1729b3e418f5439fdf0bebbe70f041ca134f526",
- date: "2024-11-05 12:50:39 +0100",
+ commit: "d31f955dce6498f4ca61cd353ffd50b2c984b5c4",
+ date: "2024-11-05 18:58:45 +0100",
};