mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
feat: enhance next.config.mjs and local-config-updater imports
- Added outputFileTracingIncludes to next.config.mjs for better handling of the @anthropic-ai/claude-agent-sdk files. - Updated import statements in local-config-updater to use TypeScript type imports for improved clarity and maintainability. These changes improve the configuration management and build process within the Hexclave ecosystem.
This commit is contained in:
parent
1b036b6915
commit
ddbd55e8b9
@ -48,6 +48,15 @@ const nextConfig = {
|
||||
// optionally set output to "standalone" for Docker builds
|
||||
// https://nextjs.org/docs/pages/api-reference/next-config-js/output
|
||||
output: process.env.NEXT_CONFIG_OUTPUT,
|
||||
outputFileTracingIncludes: {
|
||||
"/*": [
|
||||
"./node_modules/@anthropic-ai/claude-agent-sdk/cli.js",
|
||||
"./node_modules/@anthropic-ai/claude-agent-sdk/manifest.json",
|
||||
"./node_modules/@anthropic-ai/claude-agent-sdk/manifest.zst.json",
|
||||
"./node_modules/@anthropic-ai/claude-agent-sdk/resvg.wasm",
|
||||
"./node_modules/@anthropic-ai/claude-agent-sdk/vendor/**/*",
|
||||
],
|
||||
},
|
||||
|
||||
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
|
||||
|
||||
|
||||
@ -1,12 +1,13 @@
|
||||
import { showOnboardingStackConfigValue } from "@hexclave/shared/dist/config-authoring";
|
||||
import { Config, ConfigValue, NormalizedConfig, isValidConfig, normalize, override } from "@hexclave/shared/dist/config/format";
|
||||
import type { Config, ConfigValue, NormalizedConfig } from "@hexclave/shared/dist/config/format";
|
||||
import { isValidConfig, normalize, override } from "@hexclave/shared/dist/config/format";
|
||||
import { detectImportPackageFromDir, renderConfigFileContent } from "@hexclave/shared/dist/config-rendering";
|
||||
import { getRelativeImportSpecifiers, stackConfigFileExportsConfig } from "@hexclave/shared/dist/hexclave-config-file";
|
||||
import { createHash } from "crypto";
|
||||
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "fs";
|
||||
import { createJiti } from "jiti";
|
||||
import path from "path";
|
||||
import { getToolWriteTargetPath, isPathInsideDir, runHeadlessClaudeAgent } from "./config-agent";
|
||||
import { getToolWriteTargetPath, isPathInsideDir, runHeadlessClaudeAgent } from "./config-agent.ts";
|
||||
|
||||
const jiti = createJiti(import.meta.url, { moduleCache: false });
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user