Skip to content

Commit 8570e08

Browse files
committed
Moving away from the POST hack
1 parent 365fba9 commit 8570e08

File tree

14 files changed

+148
-4077
lines changed

14 files changed

+148
-4077
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/protos

packages/@apphosting/adapter-nextjs/src/bin/build.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import { join } from "node:path";
66
// Opt-out sending telemetry to Vercel
77
process.env.NEXT_TELEMETRY_DISABLED = "1";
88

9+
process.env.NEXT_ADAPTER_PATH = join(import.meta.dirname, "..", "index.cjs");
10+
911
await runBuild();
1012

1113
const opts = getBuildOptions();

packages/@apphosting/adapter-nextjs/src/bin/serve.ts

Lines changed: 143 additions & 78 deletions
Large diffs are not rendered by default.

packages/@apphosting/adapter-nextjs/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { generateBundleYaml, getAdapterMetadata, populateOutputBundleOptions } f
22
import type { NextAdapter } from "next";
33
import { addRouteOverrides } from "./overrides.js";
44
import { PHASE_PRODUCTION_BUILD } from "./constants.js";
5+
import { writeFile } from "fs-extra";
56

67
const adapter: NextAdapter = {
78
name: '@apphosting/adapter-nextjs',
@@ -59,7 +60,7 @@ const adapter: NextAdapter = {
5960
nextBuildDirectory,
6061
);
6162

62-
console.log(JSON.stringify(context));
63+
await writeFile(`${outputBundleOptions.outputDirectoryBasePath}/output.json`, JSON.stringify(context));
6364

6465
const adapterMetadata = getAdapterMetadata();
6566

packages/@apphosting/adapter-nextjs/src/protos/envoy/annotations/deprecation_pb.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

packages/@apphosting/adapter-nextjs/src/protos/envoy/config/core/v3/base_pb.ts

Lines changed: 0 additions & 248 deletions
This file was deleted.

0 commit comments

Comments
 (0)