From 4a571d223e8627a8ff9dcbd73edea8d8f067cedc Mon Sep 17 00:00:00 2001 From: ascorbic Date: Sat, 11 May 2024 10:11:29 +0100 Subject: [PATCH] fix: correct imports and entrypoint --- app/entry.server.tsx | 1 - app/routes/_index.tsx | 2 +- remix.init/edge/app/routes/_index.tsx | 41 +++++++++++++++++++++++++++ remix.init/index.js | 1 - 4 files changed, 42 insertions(+), 3 deletions(-) delete mode 100644 app/entry.server.tsx create mode 100644 remix.init/edge/app/routes/_index.tsx diff --git a/app/entry.server.tsx b/app/entry.server.tsx deleted file mode 100644 index beacf24..0000000 --- a/app/entry.server.tsx +++ /dev/null @@ -1 +0,0 @@ -export { handleRequest as default } from "@netlify/remix-adapter"; diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 8a2235b..5347369 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -1,4 +1,4 @@ -import type { MetaFunction } from "@remix-run/deno"; +import type { MetaFunction } from "@remix-run/node"; export const meta: MetaFunction = () => { return [ diff --git a/remix.init/edge/app/routes/_index.tsx b/remix.init/edge/app/routes/_index.tsx new file mode 100644 index 0000000..48f29a2 --- /dev/null +++ b/remix.init/edge/app/routes/_index.tsx @@ -0,0 +1,41 @@ +import type { MetaFunction } from "@netlify/remix-runtime"; + +export const meta: MetaFunction = () => { + return [ + { title: "New Remix App" }, + { name: "description", content: "Welcome to Remix!" }, + ]; +}; + +export default function Index() { + return ( +
+

Welcome to Remix

+ +
+ ); +} diff --git a/remix.init/index.js b/remix.init/index.js index c58d16f..7fd7c6b 100644 --- a/remix.init/index.js +++ b/remix.init/index.js @@ -143,7 +143,6 @@ async function shouldUseEdge(rootDirectory) { async function main({ rootDirectory, packageManager }) { intro(`Welcome to Remix on Netlify`); - console.log("rootDirectory", rootDirectory); const useEdge = await shouldUseEdge(rootDirectory); const spin = spinner(); spin.start("Setting up your project");