Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_BACKEND_URL='127.0.0.1:1337'
NEXT_PUBLIC_SITE_URL='http://localhost:3000'
3 changes: 1 addition & 2 deletions app/(routes)/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import { getCategories } from "@/store/server/categories/queries"
import { getInitialBooks } from "@/utils/utilFuncs"

export default async function Home() {
const categories = await getCategories(true)
const categories = await getCategories(true)
const books = await getInitialBooks(categories)

return (
<main>
<HeroSection />
Expand Down
14 changes: 10 additions & 4 deletions app/(routes)/categories/CategoriesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import Link from "next/link"
import BookRow from "@/components/BookRow"
import CaretDownIcon from "@/icons/CaretDownIcon"
import { useCategories } from "@/store/server/categories/queries"
// import { useCategories } from "@/store/server/categories/queries"
import { Categories } from "@/store/server/categories/types"
import { Books } from "@/store/server/books/types"

Expand All @@ -16,12 +16,18 @@ export default function CategoriesSection({
categories,
books,
}: CategoriesSectionProps) {
const { data } = useCategories({ categories })
// const { data } = useCategories({ categories })

let data = [
{name: "New Arribes", slug: "new-arribes"},
{name: "Best Seller", slug: "best-seller"},
{name: "Novel", slug: "novel"}
]

return (
<>
{data.length > 0 &&
data.map(({ name, slug }) => (
{data?.length > 0 &&
data?.map(({ name, slug }) => (
<section key={slug} className="pb-6">
<div className="flex items-baseline justify-between">
<h2 className="font-serif text-2xl font-medium capitalize md:text-2xl">
Expand Down
8 changes: 6 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ export const metadata = {
url: `${process.env.NEXT_PUBLIC_SITE_URL}/icons/favicon-32x32.png`,
},
],
},
themeColor: "#EDF4F4",
}
}

export const viewport = {
width: 1,
themeColor: '#EDF4F4',
}

export default function RootLayout({
Expand Down
Binary file modified backend/.tmp/data.db
Binary file not shown.
6 changes: 0 additions & 6 deletions backend/config/env/production /server.js

This file was deleted.

6 changes: 6 additions & 0 deletions backend/config/env/production/server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = ({ env }) => ({
url: env("RENDER_EXTERNAL_URL"),
dirs: {
public: "/data/public"
},
});
Loading