Skip to content
Merged
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
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
2 changes: 0 additions & 2 deletions client/src/App.jsx → client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="vite/client" />

import {
MetabaseProvider,
InteractiveQuestion,
Expand Down
8 changes: 8 additions & 0 deletions client/src/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
interface ImportMetaEnv {
readonly VITE_METABASE_INSTANCE_URL: string;
readonly CLIENT_PORT?: string;
}

interface ImportMeta {
readonly env: ImportMetaEnv;
}
9 changes: 0 additions & 9 deletions client/src/main.jsx

This file was deleted.

15 changes: 15 additions & 0 deletions client/src/main.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";

const rootElement = document.getElementById("root");

if (!rootElement) {
throw new Error("Root element not found");
}

createRoot(rootElement).render(
<StrictMode>
<App />
</StrictMode>,
);
Loading