Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Direct Line (basic, no streaming)
VITE_TOKEN_ENDPOINT=https://your-environment.api.powerplatform.com/powervirtualagents/botsbyschema/your-agent/directline/token?api-version=2022-03-01-preview
VITE_DIRECTLINE_DOMAIN=https://europe.directline.botframework.com/v3/directline

# M365 Agents SDK (streaming support) - use with ?m365 URL param
VITE_ENVIRONMENT_ID=your-environment-id
Expand Down
5 changes: 4 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ function App() {
useEffect(() => {
getDirectLineToken()
.then(token => {
setDirectLine(createDirectLine({ token }));
setDirectLine(createDirectLine({
token,
domain: import.meta.env.VITE_DIRECTLINE_DOMAIN || undefined
}));
})
.catch(err => {
console.error('Failed to initialize DirectLine:', err);
Expand Down