File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/@apphosting/adapter-nextjs/src Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,12 @@ process.env.NEXT_TELEMETRY_DISABLED = "1";
20
20
if ( ! process . env . FRAMEWORK_VERSION ) {
21
21
throw new Error ( "Could not find the nextjs version of the application" ) ;
22
22
}
23
+
24
+ const { distDir, configFileName } = await loadConfig ( root , opts . projectDirectory ) ;
25
+
23
26
await runBuild ( ) ;
24
27
25
28
const adapterMetadata = getAdapterMetadata ( ) ;
26
-
27
- const { distDir } = await loadConfig ( root , opts . projectDirectory ) ;
28
29
const nextBuildDirectory = join ( opts . projectDirectory , distDir ) ;
29
30
const outputBundleOptions = populateOutputBundleOptions (
30
31
root ,
Original file line number Diff line number Diff line change 1
1
import { AdapterMetadata , MiddlewareManifest } from "./interfaces.js" ;
2
2
import { loadRouteManifest , writeRouteManifest , loadMiddlewareManifest } from "./utils.js" ;
3
3
4
+ export async function overrideNextConfig ( nextConfigFileName : string ) { }
5
+
4
6
/**
5
7
* Modifies the app's route manifest (routes-manifest.json) to add Firebase App Hosting
6
8
* specific overrides (i.e headers).
@@ -36,8 +38,8 @@ export async function addRouteOverrides(
36
38
]
37
39
: [ ] ) ,
38
40
] ,
39
- /*
40
- NextJs converts the source string to a regex using path-to-regexp (https://github.com/pillarjs/path-to-regexp) at
41
+ /*
42
+ NextJs converts the source string to a regex using path-to-regexp (https://github.com/pillarjs/path-to-regexp) at
41
43
build time: https://github.com/vercel/next.js/blob/canary/packages/next/src/build/index.ts#L1273.
42
44
This regex is then used to match the route against the request path.
43
45
You can’t perform that action at this time.
0 commit comments