Skip to content

Commit

Permalink
fix: correct imports and entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed May 11, 2024
1 parent 3fbf4c2 commit 4a571d2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/entry.server.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { MetaFunction } from "@remix-run/deno";
import type { MetaFunction } from "@remix-run/node";

export const meta: MetaFunction = () => {
return [
Expand Down
41 changes: 41 additions & 0 deletions remix.init/edge/app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div style={{ fontFamily: "system-ui, sans-serif", lineHeight: "1.8" }}>
<h1>Welcome to Remix</h1>
<ul>
<li>
<a
target="_blank"
href="https://remix.run/tutorials/blog"
rel="noreferrer"
>
15m Quickstart Blog Tutorial
</a>
</li>
<li>
<a
target="_blank"
href="https://remix.run/tutorials/jokes"
rel="noreferrer"
>
Deep Dive Jokes App Tutorial
</a>
</li>
<li>
<a target="_blank" href="https://remix.run/docs" rel="noreferrer">
Remix Docs
</a>
</li>
</ul>
</div>
);
}
1 change: 0 additions & 1 deletion remix.init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 4a571d2

Please sign in to comment.