fix: basePath

main
fadeaway 6 months ago
parent a17cf19717
commit 22478a1284

4
.gitignore vendored

@ -12,7 +12,9 @@
# next.js
/.next/
/out/
/dist/
/html/
*.zip
*.rar
# production
/build

@ -1,9 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
distDir: 'dist',
distDir: 'html',
basePath: '/html',
assetPrefix: '/html/',
};
export default nextConfig;

@ -5,14 +5,7 @@ import { useState } from 'react';
import Image from 'next/image';
const Icon = ({ name }: { name: string }) => (
<Image
className="w-[24px] h-[24px] ml-[1px]"
width={24}
height={24}
unoptimized
src={`/img/${name}.png`}
alt={name}
/>
<Image className="w-[24px] h-[24px] ml-[1px]" width={24} height={24} unoptimized src={`img/${name}.png`} alt={name} />
);
export default function ArticalWrap(props: { content?: any }) {

Loading…
Cancel
Save