diff --git a/.env.example b/.env.example
index 097a2a9..46feb20 100644
--- a/.env.example
+++ b/.env.example
@@ -1,5 +1,5 @@
-NEXT_PUBLIC_GITHUB_API=
-NEXT_PUBLIC_GISCUS_CATEGORY_ID=
-NEXT_PUBLIC_GISCUS_REPO_ID=
+# NEXT_PUBLIC_GITHUB_API=
+# NEXT_PUBLIC_GISCUS_CATEGORY_ID=
+# NEXT_PUBLIC_GISCUS_REPO_ID=
NEXT_PUBLIC_ALGOLIA_SEARCH_ADMIN_KEY=
NEXT_PUBLIC_ALGOLIA_APP_ID=
diff --git a/app/global-error.tsx b/app/global-error.tsx
index 5a101e7..a87f6d7 100644
--- a/app/global-error.tsx
+++ b/app/global-error.tsx
@@ -10,14 +10,18 @@ const GlobalError = ({
error: Error & { digest?: string };
reset: () => void;
}) => {
+ console.error(error);
+
return (
-
Something went wrong! ノ( OωOノ)
-
+ Something went wrong! ノ( OωOノ)
+
diff --git a/app/not-found.tsx b/app/not-found.tsx
new file mode 100644
index 0000000..b2022e3
--- /dev/null
+++ b/app/not-found.tsx
@@ -0,0 +1,15 @@
+import Button from 'components/rua/button';
+import Link from 'next/link';
+
+export default function NotFound() {
+ return (
+
+
+
来到了神秘次元 ∑( 口 ||)
+
+
+
+
+
+ );
+}
diff --git a/app/p/[slug]/page.tsx b/app/p/[slug]/page.tsx
index 17afe62..f39aee9 100644
--- a/app/p/[slug]/page.tsx
+++ b/app/p/[slug]/page.tsx
@@ -16,7 +16,6 @@ const PostToc = dynamic(() => import('components/post/post-toc'));
const PostCommnetLine = dynamic(
() => import('components/post/post-commnet-line'),
);
-const PostComment = dynamic(() => import('components/post/post-comment'));
export async function generateStaticParams() {
return await allPostsPath();
diff --git a/components/common/back-to-top.tsx b/components/common/back-to-top.tsx
index 313b949..cf3d5ea 100644
--- a/components/common/back-to-top.tsx
+++ b/components/common/back-to-top.tsx
@@ -41,6 +41,7 @@ const BackToTop = () => {
'lg:right-8 lg:bottom-8',
'transition-all duration-300',
showTop ? 'visible scale-100' : 'invisible scale-0',
+ 'cursor-pointer',
)}
>
diff --git a/components/models/cat-model.tsx b/components/models/cat-model.tsx
index efc8cfb..19ce235 100644
--- a/components/models/cat-model.tsx
+++ b/components/models/cat-model.tsx
@@ -14,11 +14,11 @@ const CatModel = () => {
const camera = useThree((state) => state.camera);
const gltf = useLoader(
GLTFLoader,
- './models/just_a_hungry_cat/modelDraco.gltf',
+ '/models/just_a_hungry_cat/modelDraco.gltf',
(loader) => {
toggleLoading(true);
const dracoLoader = new DRACOLoader();
- dracoLoader.setDecoderPath('./libs/draco/');
+ dracoLoader.setDecoderPath('/libs/draco/');
loader.setDRACOLoader(dracoLoader);
},
);
diff --git a/components/models/cloud-model.tsx b/components/models/cloud-model.tsx
index 4f27009..928dcb5 100644
--- a/components/models/cloud-model.tsx
+++ b/components/models/cloud-model.tsx
@@ -41,11 +41,11 @@ const CloudModel = () => {
const gltf = useLoader(
GLTFLoader,
- './models/cloud_station/modelDraco.gltf',
+ '/models/cloud_station/modelDraco.gltf',
(loader) => {
toggleLoading(true);
const dracoLoader = new DRACOLoader();
- dracoLoader.setDecoderPath('./libs/draco/');
+ dracoLoader.setDecoderPath('/libs/draco/');
loader.setDRACOLoader(dracoLoader);
},
);
diff --git a/lib/fetcher.ts b/lib/fetcher.ts
index 84ac5e9..2576331 100644
--- a/lib/fetcher.ts
+++ b/lib/fetcher.ts
@@ -6,7 +6,7 @@ import { GistData, GistsFile, PageKeys, PageSize } from 'types';
const password = process.env.NEXT_PUBLIC_GITHUB_API;
const host = process.env.NEXT_PUBLIC_GISTS_HOST ?? 'https://api.github.com';
-if (!password) throw new Error('No GitHub token detected.');
+// if (!password) throw new Error('No GitHub token detected.');
const MyOctokit = Octokit.plugin(restEndpointMethods);
const octokit = new MyOctokit({
auth: password,
diff --git a/lib/image.ts b/lib/image.ts
new file mode 100644
index 0000000..47210e0
--- /dev/null
+++ b/lib/image.ts
@@ -0,0 +1,12 @@
+// [TODO]
+export default function imageProcess({
+ src,
+ width,
+ quality,
+}: {
+ src: string;
+ width: number;
+ quality?: number;
+}) {
+ return `/${src}`;
+}
diff --git a/next.config.mjs b/next.config.mjs
index edfe0ba..3dd2c29 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -15,8 +15,9 @@ const fileLoaderPathUrl = new URL(fileLoaderPath, import.meta.url).href;
*/
const nextConfig = {
reactStrictMode: true,
- // swcMinify: true,
- output: 'standalone',
+ // output: 'standalone',
+ output: 'export',
+ trailingSlash: true,
allowedDevOrigins: [
'local-origin.dev',
'*.local-origin.dev',
@@ -29,6 +30,9 @@ const nextConfig = {
hostname: '**',
},
],
+ unoptimized: true,
+ loader: 'custom',
+ loaderFile: './lib/image.ts',
},
experimental: {
webpackBuildWorker: true,