Skip to content

Commit

Permalink
fix: fix CI errors
Browse files Browse the repository at this point in the history
Update the lock file
Format the files
  • Loading branch information
vicb committed Nov 19, 2024
1 parent c5b38a9 commit c60f890
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
6 changes: 1 addition & 5 deletions examples/middleware/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import type { Metadata } from "next";

export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>{children}</body>
Expand Down
17 changes: 9 additions & 8 deletions packages/cloudflare/src/cli/build/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { cpSync } from "node:fs";
import { dirname, join } from "node:path";
import { createRequire } from "node:module";
import { dirname, join } from "node:path";

import type { ProjectOptions } from "../config";
import { containsDotNextDir, getConfig } from "../config";
import { buildWorker } from "./build-worker";
import { printHeader, showWarningOnWindows } from "@opennextjs/aws/build/utils.js";
import { compileOpenNextConfig } from "@opennextjs/aws/build/compileConfig.js";
import logger from "@opennextjs/aws/logger.js";
import * as buildHelper from "@opennextjs/aws/build/helper.js";
import { buildNextjsApp, setStandaloneBuildMode } from "@opennextjs/aws/build/buildNextApp.js";
import { compileOpenNextConfig } from "@opennextjs/aws/build/compileConfig.js";
import { createMiddleware } from "@opennextjs/aws/build/createMiddleware.js";
import * as buildHelper from "@opennextjs/aws/build/helper.js";
import { printHeader, showWarningOnWindows } from "@opennextjs/aws/build/utils.js";
import logger from "@opennextjs/aws/logger.js";
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next.js";

import type { ProjectOptions } from "../config";
import { containsDotNextDir, getConfig } from "../config";
import { buildWorker } from "./build-worker";

/**
* Builds the application in a format that can be passed to workerd
*
Expand Down
1 change: 0 additions & 1 deletion packages/cloudflare/src/cli/templates/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { MockedResponse } from "next/dist/server/lib/mock-request";
import type { NodeRequestHandler } from "next/dist/server/next-server";

import type { CloudflareContext } from "../../api";

// @ts-expect-error: resolved by wrangler build
import { handler as middlewareHandler } from "./middleware/handler.mjs";

Expand Down
9 changes: 2 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c60f890

Please sign in to comment.