Use crawled data instead of mock data in frontend

- Change import from mock-posts.json to posts.json
- Frontend now displays actual crawled posts
- Users need to run crawler (npm test) to populate data
This commit is contained in:
Claude
2025-11-15 18:27:08 +00:00
parent bae43e4679
commit b59215bf1c

View File

@@ -1,12 +1,12 @@
import { useState } from 'react';
import Header from './components/common/Header';
import PostList from './components/PostList';
import mockPosts from './data/mock-posts.json';
import crawledPosts from './data/posts.json';
import type { Post } from './types';
function App() {
const [searchQuery, setSearchQuery] = useState('');
const posts = mockPosts as Post[];
const posts = crawledPosts as Post[];
return (
<div className="min-h-screen bg-gray-50">