@vercel/go 3.10.0 → 3.10.2

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.
Binary file
Binary file
package/dist/index.js CHANGED
@@ -14894,6 +14894,18 @@ async function generateProjectManifest({
14894
14894
  var diagnostics = (0, import_build_utils3.createDiagnostics)("go");
14895
14895
 
14896
14896
  // src/standalone-server.ts
14897
+ function getStandaloneServerRoutes(service) {
14898
+ if (!service?.name || service.type) {
14899
+ return void 0;
14900
+ }
14901
+ return [
14902
+ { handle: "filesystem" },
14903
+ {
14904
+ src: "/(.*)",
14905
+ dest: "/index"
14906
+ }
14907
+ ];
14908
+ }
14897
14909
  async function findGoModPath(entrypointDir, workPath) {
14898
14910
  let goModPath = void 0;
14899
14911
  let isGoModInRootDir = false;
@@ -15007,7 +15019,8 @@ async function buildStandaloneServer({
15007
15019
  framework: config.framework ?? void 0,
15008
15020
  serviceType: service ? (0, import_build_utils4.getReportedServiceType)(service) : void 0
15009
15021
  });
15010
- return { output: lambda };
15022
+ const routes = getStandaloneServerRoutes(service);
15023
+ return { output: lambda, ...routes ? { routes } : {} };
15011
15024
  }
15012
15025
  var DEV_SERVER_STARTUP_TIMEOUT = 5 * 6e4;
15013
15026
  var PERSISTENT_SERVERS = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/go",
3
- "version": "3.10.0",
3
+ "version": "3.10.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/go",
@@ -33,7 +33,7 @@
33
33
  "xdg-app-paths": "5.1.0",
34
34
  "yauzl-promise": "2.1.3",
35
35
  "@vercel-internals/ipc-proxy": "1.0.0",
36
- "@vercel/build-utils": "13.32.0"
36
+ "@vercel/build-utils": "13.32.1"
37
37
  },
38
38
  "scripts": {
39
39
  "build": "node build.mjs",