diff --git a/.gitignore b/.gitignore
index cef697a..c731f12 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,23 +1,12 @@
node_modules
+.env
# Remix
/.cache
/build
-/public/build
-# Remix stacks
-/package-lock.json
-
-# Custom Build
-/dist
-
-# Tailwind
-/app/styles/tailwind.css
+# Cloudflare
+.wrangler
-# Cypress
-/cypress/videos
-/cypress/screenshots
-
-# Miniflare
-/.mf
-/.env
+# Remix stacks
+/package-lock.json
\ No newline at end of file
diff --git a/app/entry.client.tsx b/app/entry.client.tsx
deleted file mode 100644
index ea51652..0000000
--- a/app/entry.client.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import { RemixBrowser } from '@remix-run/react';
-import { startTransition, StrictMode } from 'react';
-import { hydrateRoot } from 'react-dom/client';
-
-function hydrate() {
- startTransition(() => {
- hydrateRoot(
- document,
-
-
-
- );
- });
-}
-
-if (window.requestIdleCallback) {
- window.requestIdleCallback(hydrate);
-} else {
- // Safari doesn't support requestIdleCallback
- // https://caniuse.com/requestidlecallback
- window.setTimeout(hydrate, 1);
-}
diff --git a/app/entry.server.tsx b/app/entry.server.tsx
deleted file mode 100644
index b845f39..0000000
--- a/app/entry.server.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import { type EntryContext } from '@remix-run/cloudflare';
-import { RemixServer } from '@remix-run/react';
-import isbot from 'isbot';
-import { renderToReadableStream } from 'react-dom/server';
-
-export default async function handleRequest(
- request: Request,
- responseStatusCode: number,
- responseHeaders: Headers,
- remixContext: EntryContext
-) {
- const body = await renderToReadableStream(
- ,
- {
- onError: (error) => {
- responseStatusCode = 500;
- console.error(error);
- },
- signal: request.signal,
- }
- );
-
- if (isbot(request.headers.get('User-Agent'))) {
- await body.allReady;
- }
-
- const headers = new Headers(responseHeaders);
- headers.set('Content-Type', 'text/html');
-
- return new Response(body, {
- status: responseStatusCode,
- headers,
- });
-}
diff --git a/app/root.tsx b/app/root.tsx
index 394bfa9..848b933 100644
--- a/app/root.tsx
+++ b/app/root.tsx
@@ -7,35 +7,30 @@ import * as React from 'react';
import {
Link,
Links,
- LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
- useCatch,
+ isRouteErrorResponse,
+ useRouteError,
} from '@remix-run/react';
+import stylesUrl from '~/styles.css?url';
-import stylesUrl from '~/styles/tailwind.css';
-
-/**
- * The `links` export is a function that returns an array of objects that map to
- * the attributes for an HTML `` element. These will load `` tags on
- * every route in the app, but individual routes can include their own links
- * that are automatically unloaded when a user navigates away from the route.
- *
- * https://remix.run/api/app#links
- */
-export let links: LinksFunction = () => {
+export const links: LinksFunction = () => {
return [{ rel: 'stylesheet', href: stylesUrl }];
};
-export let meta: MetaFunction = () => {
- return {
- viewport: 'width=device-width, initial-scale=1',
- };
+export const meta: MetaFunction = () => {
+ return [
+ {
+ charset: 'utf-8',
+ // title: 'Conform Playground',
+ viewport: 'width=device-width,initial-scale=1',
+ },
+ ];
};
-export let loader: LoaderFunction = async () => {
+export const loader: LoaderFunction = async () => {
return { date: new Date() };
};
@@ -68,7 +63,6 @@ function Document({
{children}
- {process.env.NODE_ENV === 'development' && }