Skip to content

Commit 4c0fa37

Browse files
committed
Added basepath
1 parent c78e169 commit 4c0fa37

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

next.config.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ const nextConfig = {
66
output: "export",
77
images: {
88
loader: "akamai",
9-
path: "/Next.js-and-GitHub-Pages-Example/",
9+
path: "",
1010
},
11-
assetPrefix: "/Next.js-and-GitHub-Pages-Example",
1211
};
1312

1413
export default nextConfig;

pages/index.tsx

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { NextPage } from 'next'
2-
import Head from 'next/head'
3-
import Image from 'next/image'
4-
import styles from '../styles/Home.module.css'
1+
import type { NextPage } from "next";
2+
import Head from "next/head";
3+
import Image from "next/image";
4+
import styles from "../styles/Home.module.css";
55

66
const Home: NextPage = () => {
77
return (
@@ -18,7 +18,7 @@ const Home: NextPage = () => {
1818
</h1>
1919

2020
<p className={styles.description}>
21-
Get started by editing{' '}
21+
Get started by editing{" "}
2222
<code className={styles.code}>pages/index.tsx</code>
2323
</p>
2424

@@ -59,14 +59,19 @@ const Home: NextPage = () => {
5959
target="_blank"
6060
rel="noopener noreferrer"
6161
>
62-
Powered by{' '}
62+
Powered by{" "}
6363
<span className={styles.logo}>
64-
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
64+
<Image
65+
src="/Next.js-and-GitHub-Pages-Example/vercel.svg"
66+
alt="Vercel Logo"
67+
width={72}
68+
height={16}
69+
/>
6570
</span>
6671
</a>
6772
</footer>
6873
</div>
69-
)
70-
}
74+
);
75+
};
7176

72-
export default Home
77+
export default Home;

0 commit comments

Comments
 (0)