@vercel/go 28.0.1 → 28.0.2-snapshot-ff25f3f66933

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ import { BuildOptions, type BuildResultV2Typical, type BuildResultVX, StartDevServerOptions, StartDevServerResult } from '@vercel/build-utils';
2
+ /**
3
+ * Output path for the standalone server Lambda.
4
+ *
5
+ * Deliberately not `index`: the filesystem handler resolves `/` to an `index`
6
+ * output, so a rewrite landing on `/` would dispatch there before the catch-all
7
+ * below can copy the resolved destination into the runtime request path.
8
+ */
9
+ export declare const STANDALONE_LAMBDA_PATH = "go";
10
+ export declare function getStandaloneServerRoutes(service: BuildOptions['service']): BuildResultV2Typical['routes'];
11
+ /**
12
+ * Build a standalone Go HTTP server (runtime framework preset mode).
13
+ * This builds a bootstrap wrapper that handles the Vercel IPC protocol
14
+ * and proxies requests to the user's Go server.
15
+ */
16
+ export declare function buildStandaloneServer(options: BuildOptions): Promise<BuildResultVX>;
17
+ /**
18
+ * Compiles the user's server and fronts it with the shared dev proxy, which
19
+ * reproduces the production proxy's request-facing behavior.
20
+ */
21
+ export declare function startStandaloneDevServer(opts: StartDevServerOptions, resolvedEntrypoint: string): Promise<StartDevServerResult>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Go toolchain and cache helpers for other builders, such as `@vercel/next`.
3
+ * Import from `@vercel/go/dist/toolchain`. It is built separately from the
4
+ * Builder entry so that bundling it does not include the Go builder.
5
+ *
6
+ * `@vercel/next` bundles this module from source, so it is listed in
7
+ * `BUNDLED_PUBLIC_PACKAGES` in `utils/expand-internal-changesets.mjs`, which
8
+ * releases it whenever `@vercel/go` changes.
9
+ */
10
+ export { compareGoVersions, createGo, findGoModPath, GoWrapper, localCacheDir, parseGoModVersion, selectGoVersion, } from './go-helpers';
11
+ export type { GoVersionSource } from './go-helpers';
12
+ export { materializeGoCacheDirectory, removeGoCacheTree } from './go-cache';