Skip to content

Commit

Permalink
fix(build): fix vite top-level await error
Browse files Browse the repository at this point in the history
  • Loading branch information
BleedingDev committed Jan 11, 2025
1 parent dc7866b commit 83f5b4d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/coursition/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { builtinModules } from 'module'
import { defineConfig } from '@tanstack/start/config'
import tsConfigPaths from 'vite-tsconfig-paths'

Expand All @@ -7,9 +8,19 @@ export default defineConfig({
ssr: {
noExternal: ['react-dropzone'],
},
build: {
rollupOptions: {
external: [...builtinModules, /^node:/],
},
},
},

server: {
preset: 'vercel',
esbuild: {
options: {
target: 'esnext',
},
},
},
})
1 change: 1 addition & 0 deletions libs/env/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './secrets'
export * from './typed'

0 comments on commit 83f5b4d

Please sign in to comment.