@salesforce/afv-skills 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/afv-skills",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Salesforce skills for Agentforce Vibes",
5
5
  "license": "CC-BY-NC-4.0",
6
6
  "files": [
@@ -43,6 +43,15 @@ Before finishing, confirm: Did I update `appLayout.tsx` with real nav items and
43
43
 
44
44
  Use a single router package. With `createBrowserRouter` / `RouterProvider`, all imports must come from `react-router` (not `react-router-dom`).
45
45
 
46
+ If the app uses a client-side router (React Router, Remix Router, Vue Router, etc.), always derive basename / basepath / base from the document's `<base href>` tag at runtime. Never hardcode the basename:
47
+
48
+ ```js
49
+ const basename = document.querySelector('base')
50
+ ? new URL(document.querySelector('base').href).pathname.replace(/\/$/, '')
51
+ : '/';
52
+ const router = createBrowserRouter(routes, { basename });
53
+ ```
54
+
46
55
  ### Component Library and Styling
47
56
 
48
57
  - **shadcn/ui** for components: `import { Button } from '@/components/ui/button';`