feat: Add tailwind and cloudflare support

This commit is contained in:
Wanjohi
2024-08-30 10:22:10 +03:00
parent 81fc5e8f85
commit fd16947e14
21 changed files with 558 additions and 24 deletions

View File

@@ -0,0 +1,24 @@
/*
* WHAT IS THIS FILE?
*
* It's the entry point for Cloudflare Pages when building for production.
*
* Learn more about the Cloudflare Pages integration here:
* - https://qwik.dev/docs/deployments/cloudflare-pages/
*
*/
import {
createQwikCity,
type PlatformCloudflarePages,
} from "@builder.io/qwik-city/middleware/cloudflare-pages";
import qwikCityPlan from "@qwik-city-plan";
import { manifest } from "@qwik-client-manifest";
import render from "./entry.ssr";
declare global {
interface QwikCityPlatform extends PlatformCloudflarePages {}
}
const fetch = createQwikCity({ render, qwikCityPlan, manifest });
export { fetch };

View File

@@ -7,7 +7,7 @@ import {
import { RouterHead } from "./components/router-head/router-head";
import { isDev } from "@builder.io/qwik/build";
import "./global.css";
import "@nestri/ui/globals.css";
export default component$(() => {
/**

View File

@@ -3,14 +3,9 @@ import type { DocumentHead } from "@builder.io/qwik-city";
export default component$(() => {
return (
<>
<h1>Hi 👋</h1>
<div>
Can't wait to see what you build with qwik!
<br />
Happy coding.
</div>
</>
<div class="bg-primary-500 h-screen w-screen">
</div>
);
});