migration

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package migration provides config file parsers for platform migrations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParsedConfig

type ParsedConfig struct {
	Framework           string   `json:"framework"`
	BuildCommand        string   `json:"build_command"`
	OutputDir           string   `json:"output_dir"`
	EnvVarKeys          []string `json:"env_var_keys,omitempty"`
	Warnings            []string `json:"warnings"`
	UnsupportedFeatures []string `json:"unsupported_features,omitempty"`
}

ParsedConfig is the normalized output from any platform's config parser.

func ParseCloudflareConfig

func ParseCloudflareConfig(content string) (ParsedConfig, error)

ParseCloudflareConfig parses wrangler.toml content into a ParsedConfig.

func ParseNetlifyConfig

func ParseNetlifyConfig(content string) (ParsedConfig, error)

ParseNetlifyConfig parses netlify.toml content into a ParsedConfig.

func ParseVercelConfig

func ParseVercelConfig(content string) (ParsedConfig, error)

ParseVercelConfig parses vercel.json content into a ParsedConfig.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL