Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/open-next/src/adapters/cache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isBinaryContentType } from "./binary";
import { isBinaryContentType } from "../utils/binary";
import { debug, error, warn } from "./logger";

interface CachedFetchValue {
Expand Down
2 changes: 1 addition & 1 deletion packages/open-next/src/build/createAssets.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import fs from "node:fs";
import path from "node:path";

import { isBinaryContentType } from "../adapters/binary.js";
import logger from "../logger.js";
import { isBinaryContentType } from "../utils/binary.js";
import * as buildHelper from "./helper.js";

export function createStaticAssets(options: buildHelper.BuildOptions) {
Expand Down
2 changes: 1 addition & 1 deletion packages/open-next/src/core/routing/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import { parseHeaders } from "http/util.js";
import type { MiddlewareManifest } from "types/next-types";
import type { InternalEvent, InternalResult } from "types/open-next.js";

import { isBinaryContentType } from "../../adapters/binary.js";
import { debug, error } from "../../adapters/logger.js";
import { isBinaryContentType } from "../../utils/binary.js";

/**
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { request } from "node:https";
import { Readable } from "node:stream";
import type { InternalEvent, InternalResult } from "types/open-next";
import type { ProxyExternalRequest } from "types/overrides";
import { isBinaryContentType } from "../../adapters/binary";
import { isBinaryContentType } from "../../utils/binary";

function filterHeadersForProxy(
headers: Record<string, string | string[] | undefined>,
Expand Down
2 changes: 1 addition & 1 deletion packages/tests-unit/tests/binary.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isBinaryContentType } from "@opennextjs/aws/adapters/binary.js";
import { isBinaryContentType } from "@opennextjs/aws/utils/binary.js";

describe("isBinaryContentType", () => {
const tests = [
Expand Down
66 changes: 0 additions & 66 deletions packages/utils/src/binary.ts

This file was deleted.

Loading