fix: basePath

main
fadeaway 8 months ago
parent a17cf19717
commit 22478a1284

4
.gitignore vendored

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

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

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

Loading…
Cancel
Save