23 lines
628 B
TypeScript
23 lines
628 B
TypeScript
import { flue } from "@flue/vite";
|
|
import { defineConfig } from "vite";
|
|
|
|
// Flue 2.0 Node target. @flue/vite auto-discovers flue.config.ts, scans
|
|
// 'use agent' modules, and builds dist/server.mjs. The built server listens
|
|
// on 127.0.0.1:3000 (Caddy terminates TLS upstream at agents.zopu.puter.wtf).
|
|
export default defineConfig({
|
|
plugins: [
|
|
...flue({
|
|
providers: [],
|
|
target: "node",
|
|
}),
|
|
],
|
|
preview: {
|
|
host: process.env.HOST ?? "127.0.0.1",
|
|
port: Number(process.env.PORT ?? 3000),
|
|
},
|
|
server: {
|
|
host: process.env.HOST ?? "127.0.0.1",
|
|
port: Number(process.env.PORT ?? 3000),
|
|
},
|
|
});
|