mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
- Created modern React/Vite/TypeScript documentation site - Integrated @luxfi/ui components and branding - Monochrome black/white theme with Inter font - Built production assets in /docs for GitHub Pages - Configured deployment for ui.lux.finance - Added CNAME file for custom domain - Setup GitHub Actions workflow for automated deployment
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src'),
|
|
'@luxfi/ui': path.resolve('/Users/z/work/lux/web/pkg/ui'),
|
|
'@luxfi/ui/commerce': path.resolve('/Users/z/work/lux/web/pkg/ui/commerce/ui/context.tsx'),
|
|
'@luxfi/ui/style': path.resolve('/Users/z/work/lux/web/pkg/ui/style'),
|
|
'@hanzo/ui': path.resolve('/Users/z/work/hanzo/ui/pkg/ui'),
|
|
'@hanzo/ui/primitives': path.resolve('/Users/z/work/hanzo/ui/pkg/ui/primitives'),
|
|
},
|
|
},
|
|
optimizeDeps: {
|
|
include: ['lucide-react'],
|
|
exclude: ['@luxfi/ui', '@hanzo/ui'],
|
|
},
|
|
server: {
|
|
port: 3000,
|
|
open: true,
|
|
fs: {
|
|
// Allow serving files from lux web directory
|
|
allow: [
|
|
'.',
|
|
'/Users/z/work/lux/web',
|
|
'/Users/z/work/hanzo/ui'
|
|
]
|
|
}
|
|
},
|
|
build: {
|
|
outDir: '../docs',
|
|
emptyOutDir: true,
|
|
},
|
|
}) |