Skip to content

Commit

Permalink
Merge pull request #8 from aulianza/fix/performance-issue
Browse files Browse the repository at this point in the history
fix: performance issue
  • Loading branch information
aulianza authored Aug 31, 2023
2 parents 909d625 + ecf4a29 commit 175ac96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
images: {
domains: ["aulianza.s3.ap-southeast-1.amazonaws.com"],
},
};

module.exports = nextConfig;
9 changes: 7 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
import dynamic from "next/dynamic";

import PageWrapper from "@/common/components/PageWrapper";
import Home from "@/modules/homepage";

const DynamicContent = dynamic(() => import("@/modules/homepage"), {
loading: () => <p>Loading...</p>,
});

export default function HomePage() {
return (
<PageWrapper>
<Home />
<DynamicContent />
</PageWrapper>
);
}

0 comments on commit 175ac96

Please sign in to comment.