Skip to content

Commit

Permalink
Added basepath
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveAldon committed Apr 22, 2024
1 parent c78e169 commit 4c0fa37
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
3 changes: 1 addition & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ const nextConfig = {
output: "export",
images: {
loader: "akamai",
path: "/Next.js-and-GitHub-Pages-Example/",
path: "",
},
assetPrefix: "/Next.js-and-GitHub-Pages-Example",
};

export default nextConfig;
25 changes: 15 additions & 10 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextPage } from 'next'
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
import type { NextPage } from "next";
import Head from "next/head";
import Image from "next/image";
import styles from "../styles/Home.module.css";

const Home: NextPage = () => {
return (
Expand All @@ -18,7 +18,7 @@ const Home: NextPage = () => {
</h1>

<p className={styles.description}>
Get started by editing{' '}
Get started by editing{" "}
<code className={styles.code}>pages/index.tsx</code>
</p>

Expand Down Expand Up @@ -59,14 +59,19 @@ const Home: NextPage = () => {
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
Powered by{" "}
<span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
<Image
src="/Next.js-and-GitHub-Pages-Example/vercel.svg"
alt="Vercel Logo"
width={72}
height={16}
/>
</span>
</a>
</footer>
</div>
)
}
);
};

export default Home
export default Home;

0 comments on commit 4c0fa37

Please sign in to comment.