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
4 changes: 4 additions & 0 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<script>
window.process = { env: { NODE_ENV: 'development' } };
window.global = window;
</script>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Buffer } from "buffer"
if (typeof window !== "undefined") {
window.Buffer = Buffer;
window.process = { env: { NODE_ENV: "development" } };
}
import React from "react"
import { createRoot } from "react-dom/client"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
7 changes: 7 additions & 0 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,12 @@ export default defineConfig({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
'process.env': {},
'global': 'globalThis'
},
server: {
fs: {
allow: [
'..', // Allow access to monorepo root (for node_modules, etc.)
]
}
}
})