Files
EdgeSSH/vite.config.ts
T
cmliu 623d270eec feat: implement SSH protocol components including key exchange, packet handling, and transport
- Add KEXInitBuilder and parsing functions for SSH key exchange initialization.
- Implement key derivation for session keys using shared secrets and exchange hashes.
- Create SSHPacketParser and SSHPacketBuilder for handling SSH packets.
- Establish SSHTransport for managing version exchange and connection setup.
- Introduce utility functions for data manipulation and encoding.
- Define types for SSH packets, key exchange messages, and session configurations.
- Set up worker environment with session management and request handling.
- Configure TypeScript and Vite for frontend and worker builds.
- Add tests and coverage configuration for SSH components.
- Initialize Wrangler configuration for deployment.
2026-07-27 19:05:23 +08:00

26 lines
493 B
TypeScript

import { defineConfig } from 'vite';
export default defineConfig({
root: 'frontend',
base: '/',
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://127.0.0.1:8787',
ws: true,
},
},
},
esbuild: {
// xterm 6 is already optimized; syntax minification can break DECRQM handling.
minifySyntax: false,
},
build: {
outDir: '../dist',
emptyOutDir: true,
sourcemap: false,
modulePreload: { polyfill: false },
},
});