Skip to content

Commit 94eb570

Browse files
committed
chore: updated cloudflare scripts
1 parent f2cb34e commit 94eb570

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

apps/website/functions/[[path]].ts

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/website/src/entry.cloudflare-pages.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@
77
* - https://qwik.builder.io/integrations/deployments/cloudflare-pages/
88
*
99
*/
10-
import { createQwikCity } from '@builder.io/qwik-city/middleware/cloudflare-pages';
10+
import {
11+
createQwikCity,
12+
type PlatformCloudflarePages,
13+
} from '@builder.io/qwik-city/middleware/cloudflare-pages';
1114
import qwikCityPlan from '@qwik-city-plan';
15+
import { manifest } from '@qwik-client-manifest';
1216
import render from './entry.ssr';
1317

14-
const onRequest = createQwikCity({ render, qwikCityPlan });
18+
declare global {
19+
interface QwikCityPlatform extends PlatformCloudflarePages {}
20+
}
1521

16-
export { onRequest };
22+
const fetch = createQwikCity({ render, qwikCityPlan, manifest });
23+
24+
export { fetch };

apps/website/src/entry.ssr.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
* - npm run build
1111
*
1212
*/
13-
import { renderToStream, RenderToStreamOptions } from '@builder.io/qwik/server';
13+
import {
14+
renderToStream,
15+
type RenderToStreamOptions,
16+
} from '@builder.io/qwik/server';
1417
import { manifest } from '@qwik-client-manifest';
1518
import Root from './root';
1619

apps/website/tsconfig.app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"extends": "./tsconfig.json",
3+
34
"compilerOptions": {
45
"outDir": "../../dist/out-tsc"
56
},

0 commit comments

Comments
 (0)