Versions in this module Expand all Collapse all v0 v0.8.1 May 5, 2026 v0.8.0 May 1, 2026 v0.4.1 May 1, 2026retracted Changes in this version + var ErrNoActionManifest = errors.New("server-reference-manifest.json not present in standalone tree") + var ErrRSCPackageNotFound = errors.New("react-server-dom-webpack not found in node_modules") + var ErrVersionNotFound = fmt.Errorf("nextcompile: could not locate next.js version in standalone tree") + func DetectVersions(standaloneDir string) (NextVersion, ReactVersion, error) + func EmitActionManifest(m *ActionManifest, outDir string) (string, error) + func EmitDispatchTable(refs []ModuleRef, actions *ActionManifest, outDir, standaloneDir string) (string, error) + func EmitManifest(m Manifest, outDir string) (string, error) + func EmitWorkerEntry(outDir string) (string, error) + func ExtractRuntime(outDir string) ([]string, error) + func RuntimeSourceFiles() ([]string, error) + type Action struct + Export string + ID string + Module string + Runtime ActionRuntime + type ActionManifest struct + Actions map[string]Action + SchemaVersion string + func DetectServerActions(standaloneDir, distDir string) (*ActionManifest, error) + type ActionRuntime string + const ActionRuntimeEdge + const ActionRuntimeNode + type BindingHint struct + Kind string + Name string + Reason string + Sources []string + type CompileOpts struct + Log Logger + OutDir string + Payload Payload + StandaloneDir string + Target Target + Verbose bool + type CompileStats struct + ActionCount int + BundleBytes int64 + ContentHash string + DeadRoutesElided int + Duration time.Duration + RouteCount int + type CompiledBundle struct + ActionManifest string + BundleDir string + DetectedReact ReactVersion + DetectedVersion NextVersion + DispatchPath string + EntryPath string + ManifestPath string + Stats CompileStats + SuggestedBindings []BindingHint + VendoredRSC *VendoredPackage + func Compile(ctx context.Context, opts CompileOpts) (*CompiledBundle, error) + type I18nConfig struct + DefaultLocale string + LocaleDetection bool + Locales []string + type ISRRoute struct + Path string + Revalidate int + Tags []string + type ImageConfig struct + Domains []string + Formats []string + RemotePatterns []ImageRemotePattern + Unoptimized bool + type ImageRemotePattern struct + Hostname string + Pathname string + Port string + Protocol string + type Logger interface + Debug func(format string, args ...any) + Info func(format string, args ...any) + Warn func(format string, args ...any) + type Manifest struct + AppName string + BasePath string + BuildID string + Features ManifestFeatures + GeneratedAt string + GitCommit string + HasAppRouter bool + I18n *ManifestI18n + ISR ManifestISR + Images *ManifestImages + Middleware *ManifestMiddle + NextVersion string + OutputMode string + ReactVersion string + Routes ManifestRoutes + SchemaVersion string + func BuildManifest(p Payload, next NextVersion, react ReactVersion, refs []ModuleRef, ...) Manifest + type ManifestFeatures struct + After bool + I18n bool + ISR bool + ImageOptimize bool + Middleware bool + PPR bool + Proxy bool + RSC bool + ServerActions bool + type ManifestI18n struct + DefaultLocale string + LocaleDetection bool + Locales []string + type ManifestISR struct + Intervals map[string]int + Tags map[string][]string + type ManifestImagePat struct + Hostname string + Pathname string + Port string + Protocol string + type ManifestImages struct + Domains []string + Formats []string + RemotePatterns []ManifestImagePat + Unoptimized bool + type ManifestMiddle struct + Matchers []ManifestMiddleMat + Path string + Runtime string + type ManifestMiddleMat struct + Pathname string + Pattern string + type ManifestRoutes struct + API []string + Dynamic []string + Fallback map[string]string + ISR map[string]string + Middleware []string + SSG map[string]string + SSR []string + Static []string + type MiddlewareConfig struct + Matchers []MiddlewareMatcher + Path string + Runtime string + type MiddlewareMatcher struct + Pathname string + Pattern string + type ModuleRef struct + ByteSize int64 + ClientManifestPath string + CompiledPath string + EnvRefs []string + FetchTargets []string + HasActions bool + Kind RouteKind + LayoutChain []string + PPREnabled bool + RoutePath string + UsesRSC bool + func ScanCompiledServer(ctx context.Context, standaloneDir string, payload Payload) ([]ModuleRef, error) + type NextVersion struct + Major int + Minor int + Patch int + Raw string + func (v NextVersion) RuntimeVariant() string + type Payload struct + AppName string + BasePath string + BuildID string + DistDir string + GitCommit string + HasAppRouter bool + I18n *I18nConfig + ImageConfig *ImageConfig + Middleware *MiddlewareConfig + OutputMode string + Routes RouteInfo + type ReactVersion struct + Major int + Minor int + Patch int + Raw string + type RouteInfo struct + APIRoutes []string + DynamicRoutes []string + FallbackRoutes map[string]string + ISRDetail []ISRRoute + ISRRoutes map[string]string + MiddlewareRoutes []string + SSGRoutes map[string]string + SSRRoutes []string + StaticRoutes []string + type RouteKind string + const RouteKindAPI + const RouteKindAction + const RouteKindLayout + const RouteKindMiddleware + const RouteKindPage + const RouteKindProxy + const RouteKindStatic + const RouteKindUnknown + type Target string + const TargetAWSLambda + const TargetCloudflareWorker + const TargetVPS + type VendoredPackage struct + BuildKind string + Bytes int64 + Name string + SourcePath string + TargetPath string + Version string + func VendorRSC(standaloneDir, bundleDir string) (*VendoredPackage, error)