Skip to content

Commit adaafe6

Browse files
authored
Surface user in SDK to template (#45)
Towards github/spark#104 Relies on github/workbench-sdk#275 and should be merged + prebuilt as soon as possible after. * Adds necessary proxying for vite to get us working in dev * Moves to import from the new shared spark file instead of llm to get the window setup (which also imports the LLM bits...)
1 parent e093b45 commit adaafe6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (import.meta.env.MODE == 'development') {
88
await import('@github/spark/initializeTelemetry');
99
}
1010

11-
import "@github/spark/llm"
11+
import "@github/spark/spark"
1212

1313
createRoot(document.getElementById('root')!).render(
1414
<App />

vite.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ export default defineConfig({
7474
target: "http://localhost:8000",
7575
changeOrigin: true,
7676
},
77+
"/_spark/user": {
78+
target: "http://localhost:8000",
79+
changeOrigin: true,
80+
},
7781
},
7882
},
7983
resolve: {

0 commit comments

Comments
 (0)