Skip to content

Commit b9cd6df

Browse files
committed
Added local images
1 parent 2afb7c2 commit b9cd6df

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

components/loadImage.ts

-7
This file was deleted.

next.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const config = {
77
output: "export",
88
reactStrictMode: true,
99
images: {
10-
loader: "custom",
10+
unoptimized: true,
1111
},
1212
webpack: (config) => {
1313
config.module.rules = [
@@ -21,7 +21,7 @@ export const config = {
2121
executableFile: path.resolve(
2222
path.dirname(url.fileURLToPath(import.meta.url)),
2323
"data",
24-
"generate-all-pages.js"
24+
"generate-all-pages.js",
2525
),
2626
},
2727
},

pages/autocrafting.png

129 KB
Loading

pages/index.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from "react";
22
import { mdiDiscord } from "@mdi/js";
33
import Icon from "@mdi/react";
4+
import subnetworksImage from "./subnetworks.png";
5+
import Image from "next/image";
46

57
function Index() {
68
return (
@@ -30,8 +32,8 @@ function Index() {
3032
</a>
3133
</div>
3234
<p>
33-
<img
34-
src="https://i.imgur.com/K02yDrh.png"
35+
<Image
36+
src={subnetworksImage}
3537
alt="image of subnetworks from the guidebook"
3638
/>
3739
</p>

pages/subnetworks.png

126 KB
Loading

0 commit comments

Comments
 (0)