Remove unused script tag from Layout component, add docker-compose and pnpm workspace configuration
This commit is contained in:
@@ -17,7 +17,6 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charSet="utf-8" />
|
||||
<script defer data-domain="space.reversed.dev" src="https://analytics.reversed.dev/js/script.js"></script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="icon" href="https://cdn.reversed.dev/pictures/cat.png" type="image/png" />
|
||||
<Meta />
|
||||
|
||||
@@ -14,35 +14,8 @@ export const meta: MetaFunction = () => {
|
||||
];
|
||||
};
|
||||
|
||||
interface BlogPost {
|
||||
id: string;
|
||||
title: string;
|
||||
excerpt: string;
|
||||
date: string;
|
||||
access: string; // Where its located in the folder
|
||||
tags: string[];
|
||||
hide_date?: boolean;
|
||||
}
|
||||
|
||||
export async function loader() {
|
||||
const posts: BlogPost[] = [
|
||||
{
|
||||
id: "1",
|
||||
title: "My First Post",
|
||||
excerpt: "Yeah, as it says, this is my first post.",
|
||||
date: "2024-01-23",
|
||||
access: "myfirstpost",
|
||||
tags: ["Hello, World!"],
|
||||
hide_date: true,
|
||||
},
|
||||
// Add more posts here
|
||||
];
|
||||
|
||||
return json({ posts });
|
||||
}
|
||||
|
||||
export default function Index() {
|
||||
const { posts } = useLoaderData<typeof loader>();
|
||||
const [status, setStatus] = useState("");
|
||||
const [border_status, setBorderStatus] = useState("border-gray-700");
|
||||
|
||||
|
||||
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
app:
|
||||
image: node:22
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
- "6756:6756"
|
||||
command: >
|
||||
sh -c "
|
||||
npm i -g pnpm &&
|
||||
pnpm install &&
|
||||
pnpm build &&
|
||||
PORT=6756 pnpm start
|
||||
"
|
||||
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
onlyBuiltDependencies:
|
||||
- esbuild
|
||||
Reference in New Issue
Block a user