Files
computer/vite.config.ts
zooqueenandHanzo Dev 18225c89a3
Hanzo CI/CD / cicd (push) Failing after 31m1s
CI/CD / cicd (push) Failing after 31m1s
The browser bundle carries the storefront and nothing else
src/lib/email.ts is the server half: it imports a mail transport that is in no
dependency list, so pulling it into the client graph fails resolution during
the build. email-client.ts wants five type names from it and now says so.

vite.config.ts also defined process.env.API_KEY and GEMINI_API_KEY from the
environment. No module reads either, so the defines only put a third-party key
into the bundle when one is set.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-15 16:49:12 -07:00

19 lines
329 B
TypeScript

import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
base: '/',
server: {
port: 3690,
host: '0.0.0.0',
strictPort: true,
},
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, '.'),
},
},
});