Skip to content

Commit 6190079

Browse files
authored
NextJS Adapter Bug Fix - Invalid next import (#308)
* bump to 14.0.11 * fix incorrect import from next
1 parent aa0c4ed commit 6190079

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@apphosting/adapter-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@apphosting/adapter-nextjs",
3-
"version": "14.0.10",
3+
"version": "14.0.11",
44
"main": "dist/index.js",
55
"description": "Experimental addon to the Firebase CLI to add web framework support",
66
"repository": {

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@ import { join, dirname, relative, normalize } from "path";
44
import { fileURLToPath } from "url";
55
import { stringify as yamlStringify } from "yaml";
66

7-
import { PHASE_PRODUCTION_BUILD, ROUTES_MANIFEST } from "./constants.js";
8-
import { OutputBundleOptions, RoutesManifest } from "./interfaces.js";
7+
import { PHASE_PRODUCTION_BUILD, ROUTES_MANIFEST, MIDDLEWARE_MANIFEST } from "./constants.js";
8+
import {
9+
OutputBundleOptions,
10+
RoutesManifest,
11+
AdapterMetadata,
12+
MiddlewareManifest,
13+
} from "./interfaces.js";
914
import { NextConfigComplete } from "next/dist/server/config-shared.js";
1015
import { OutputBundleConfig } from "@apphosting/common";
11-
import { AdapterMetadata, MiddlewareManifest } from "./interfaces.js";
12-
import { MIDDLEWARE_MANIFEST } from "next/constants.js";
1316

1417
// fs-extra is CJS, readJson can't be imported using shorthand
1518
export const { move, exists, writeFile, readJson, readdir, readFileSync, existsSync, mkdir } =

0 commit comments

Comments
 (0)