Commit b9d5e5c2 authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

a

parent 709ff6db
import type { NextConfig } from "next"; import type { NextConfig } from "next";
import links from "./src/links/index";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ /* config options here */
images: { images: {
remotePatterns: [ remotePatterns: [
{ {
protocol: "https", protocol: "https",
hostname: links.backendHost, hostname: "hiea.meu-solutions.com",
port: "", port: "",
pathname: "/vcci/images/**", pathname: "/vcci/images/**",
}, },
......
...@@ -8,7 +8,8 @@ import ImageNext from "@/components/shared/image-next"; ...@@ -8,7 +8,8 @@ import ImageNext from "@/components/shared/image-next";
function CardEvent({ event }: { event: EventItem }) { function CardEvent({ event }: { event: EventItem }) {
return ( return (
<Link <Link
href={`hoat-dong/su-kien/${event.id}`} // href={`hoat-dong/su-kien/${event.id}`}
href={`#`}
className='flex flex-row gap-2 mb-2 sm:gap-3 sm:mb-3 p-2 sm:p-3 border border-gray-200 bg-white rounded-md' className='flex flex-row gap-2 mb-2 sm:gap-3 sm:mb-3 p-2 sm:p-3 border border-gray-200 bg-white rounded-md'
> >
<ImageNext <ImageNext
......
...@@ -18,7 +18,7 @@ function Events() { ...@@ -18,7 +18,7 @@ function Events() {
<h2 className="text-[18px] sm:text-[20px] font-bold uppercase text-[#e8c518]"> <h2 className="text-[18px] sm:text-[20px] font-bold uppercase text-[#e8c518]">
Sự kiện sắp diễn ra Sự kiện sắp diễn ra
</h2> </h2>
<Link href="/hoat-dong/su-kien" className="text-[#e8c518] text-sm sm:text-base"> <Link href="#" className="text-[#e8c518] text-sm sm:text-base">
<ChevronsRight /> <ChevronsRight />
</Link> </Link>
</div> </div>
...@@ -34,7 +34,7 @@ function Events() { ...@@ -34,7 +34,7 @@ function Events() {
{data?.responseData.rows.slice(0, 1).map((event: EventItem) => ( {data?.responseData.rows.slice(0, 1).map((event: EventItem) => (
<Link <Link
key={event.id} key={event.id}
href={`hoat-dong/su-kien/${event.id}`} href={`#`}
className="flex flex-col w-full md:w-1/2 min-h-[180px] sm:min-h-[220px] gap-3 mb-3 border border-gray-200 bg-white rounded-md p-3" className="flex flex-col w-full md:w-1/2 min-h-[180px] sm:min-h-[220px] gap-3 mb-3 border border-gray-200 bg-white rounded-md p-3"
> >
<div className="w-full aspect-3/2 overflow-hidden"> <div className="w-full aspect-3/2 overflow-hidden">
......
...@@ -2,6 +2,5 @@ declare const links: { ...@@ -2,6 +2,5 @@ declare const links: {
analyticsGoogle: string analyticsGoogle: string
apiEndpoint: string apiEndpoint: string
imageEndpoint: string imageEndpoint: string
backendHost: string
} }
export default links export default links
const backendHost = '103.72.98.149:7041'
const links = { const links = {
analyticsGoogle: 'G-C9TEK9BS4C', analyticsGoogle: 'G-C9TEK9BS4C',
// apiEndpoint: "http://localhost:3000/api/v1.0", apiEndpoint: `https://hiea.meu-solutions.com/api/v1.0`,
apiEndpoint: `http://${backendHost}/api/v1.0`, imageEndpoint: `http://103.72.98.149:7041`,
// imageEndpoint: 'https://utc2.erp.meu-solutions.com',
imageEndpoint: `http://${backendHost}`,
backendHost,
siteURL: 'https://hiea-news.meu-solutions.com/', siteURL: 'https://hiea-news.meu-solutions.com/',
} }
export default links export default links
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment