diff --git a/.eslintrc.json b/.eslintrc.json index 1930264..8db7ba1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,6 @@ "extends": [ "eslint:recommended", "next", -// "next/babel", "next/core-web-vitals", "prettier" ], diff --git a/README.md b/README.md index 23e3827..08dbc6e 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ ## Getting Started First, install dependencies: + ```bash npm install # or yarn ``` + Then run the development server: + ```bash npm run dev # or @@ -16,6 +19,7 @@ yarn dev ### Settings Create a file `.env.local` and put inside: + 1. NEXT_PUBLIC_SANITY_URL="https://f2g1h82s.api.sanity.io/v2021-10-21/data/query/production", where **f2g1h82s** is your sanity project ID 2. NEXT_PUBLIC_SANITY_LATEST_PROJECTS="?query=...", your query to get latest projects 3. NEXT_PUBLIC_SANITY_ALL_PROJECTS="?query=...", your query to get all projects @@ -23,10 +27,12 @@ Create a file `.env.local` and put inside: Run Sanity (localhost:3333) - #### **`!!! Make sure to have installed Sanity globally`** + Then: + ```bash cd sanity && sanity start ``` -It runs local server at localhost:3333 \ No newline at end of file + +It runs local server at localhost:3333 diff --git a/app/sections/project/index.jsx b/app/sections/project/index.jsx index 88a5991..8301dcb 100644 --- a/app/sections/project/index.jsx +++ b/app/sections/project/index.jsx @@ -4,10 +4,10 @@ import Link from "next/link"; import useSWR from "swr"; import { HeadingDivider, Loader } from "components"; import { fetcher } from "utils/fetcher"; -import { SiteRoutes } from "constants"; import Error from "../../error"; import { ErrorBoundary } from "react-error-boundary"; import { Projects } from "../../projects/components/Projects"; +import { SITE_ROUTES } from "../../../constants"; const url = `${process.env.NEXT_PUBLIC_SANITY_URL}${process.env.NEXT_PUBLIC_SANITY_LATEST_PROJECTS}`; @@ -42,7 +42,7 @@ export function ProjectsSection() {