Replace @code/env and @code/primitives imports with local modules so the Node deploy artifact does not resolve workspace packages to TypeScript source at runtime. Switch Docker build to pnpm frozen install, add runner Dockerfile and a liveness health endpoint.
14 lines
343 B
TypeScript
14 lines
343 B
TypeScript
import { defineConfig } from "@flue/cli/config";
|
|
|
|
export default defineConfig({
|
|
target: "node",
|
|
});
|
|
|
|
// The Node deploy artifact must not resolve workspace packages to TypeScript
|
|
// source at runtime; bundle them with the Flue server instead.
|
|
export const vite = {
|
|
ssr: {
|
|
noExternal: [/^@code\/(?:env|primitives)(?:\/.*)?$/u],
|
|
},
|
|
};
|