mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
- ModuleManager: Central tracking for installed marketplace modules - DataAnalyzerWidget: Real-time CPU/RAM/Battery/Storage widget (unlocked by Data Analyzer module) - BottomNavBar: Navigation bar for Projects/Chat/Marketplace/Settings - RootShell: Real root command execution utility - TerminalActivity: Full root shell with neofetch, sysinfo, real Linux commands - Terminal Pro module: Adds aliases (ll, la, h), command history - ArcadeActivity + SnakeGame: Pixel Arcade module unlocks retro games - fade_in/fade_out animations for smooth transitions
48 lines
1 KiB
TypeScript
48 lines
1 KiB
TypeScript
import { defineConfig } from "vite";
|
|
import path from "path";
|
|
|
|
// Server build configuration
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: "dist/server",
|
|
target: "node22",
|
|
ssr: true,
|
|
rollupOptions: {
|
|
input: path.resolve(__dirname, "server/node-build.ts"),
|
|
external: [
|
|
// Node.js built-ins
|
|
"fs",
|
|
"path",
|
|
"url",
|
|
"http",
|
|
"https",
|
|
"os",
|
|
"crypto",
|
|
"stream",
|
|
"util",
|
|
"events",
|
|
"buffer",
|
|
"querystring",
|
|
"child_process",
|
|
// External dependencies that should not be bundled
|
|
"express",
|
|
"cors",
|
|
],
|
|
output: {
|
|
format: "es",
|
|
entryFileNames: "production.mjs",
|
|
},
|
|
},
|
|
minify: false, // Keep readable for debugging
|
|
sourcemap: true,
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./client"),
|
|
"@shared": path.resolve(__dirname, "./shared"),
|
|
},
|
|
},
|
|
define: {
|
|
"process.env.NODE_ENV": '"production"',
|
|
},
|
|
});
|