diff --git a/integration/cf-compiler-test.ts b/integration/cf-compiler-test.ts index 39e20139e9d..10b0cd89e09 100644 --- a/integration/cf-compiler-test.ts +++ b/integration/cf-compiler-test.ts @@ -34,11 +34,10 @@ test.describe("cloudflare compiler", () => { name: "remix-template-cloudflare-workers", private: true, sideEffects: false, - main: "build/index.js", type: "module", dependencies: { + "@cloudflare/kv-asset-handler": "0.0.0-local-version", "@remix-run/cloudflare": "0.0.0-local-version", - "@remix-run/cloudflare-workers": "0.0.0-local-version", "@remix-run/react": "0.0.0-local-version", isbot: "0.0.0-local-version", react: "0.0.0-local-version", @@ -50,7 +49,6 @@ test.describe("cloudflare compiler", () => { }, devDependencies: { "@remix-run/dev": "0.0.0-local-version", - "@remix-run/eslint-config": "0.0.0-local-version", }, }), "app/routes/_index.tsx": js` diff --git a/integration/deno-compiler-test.ts b/integration/deno-compiler-test.ts index 506fabf6f62..d0580ddcfe1 100644 --- a/integration/deno-compiler-test.ts +++ b/integration/deno-compiler-test.ts @@ -37,6 +37,7 @@ test.beforeAll(async () => { template: "deno-template", files: { "package.json": json({ + name: "remix-template-deno", private: true, sideEffects: false, type: "module", diff --git a/integration/helpers/cf-template/app/root.tsx b/integration/helpers/cf-template/app/root.tsx index 1f082523e7b..0294fbd3907 100644 --- a/integration/helpers/cf-template/app/root.tsx +++ b/integration/helpers/cf-template/app/root.tsx @@ -1,3 +1,5 @@ +import type { LinksFunction } from "@remix-run/cloudflare"; +import { cssBundleHref } from "@remix-run/css-bundle"; import { Links, LiveReload, @@ -7,6 +9,10 @@ import { ScrollRestoration, } from "@remix-run/react"; +export const links: LinksFunction = () => [ + ...(cssBundleHref ? [{ rel: "stylesheet", href: cssBundleHref }] : []), +]; + export default function App() { return ( diff --git a/packages/remix-dev/__tests__/fixtures/cloudflare/app/routes/index.tsx b/integration/helpers/cf-template/app/routes/_index.tsx similarity index 78% rename from packages/remix-dev/__tests__/fixtures/cloudflare/app/routes/index.tsx rename to integration/helpers/cf-template/app/routes/_index.tsx index cbca6124ea7..b1fae9c0941 100644 --- a/packages/remix-dev/__tests__/fixtures/cloudflare/app/routes/index.tsx +++ b/integration/helpers/cf-template/app/routes/_index.tsx @@ -1,6 +1,13 @@ +import type { MetaFunction } from "@remix-run/cloudflare"; + +export const meta: MetaFunction = () => [ + { title: "New Remix App" }, + { name: "description", content: "Welcome to Remix!" }, +]; + export default function Index() { return ( -
+

Welcome to Remix