Skip to content

Commit

Permalink
test config
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain-Brement committed Oct 19, 2023
1 parent 76737f2 commit 7b3568a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions emile-magique/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ const isProd = process.env.NODE_ENV === "production";
const nextConfig = {
output: "export",
assetPrefix: isProd ? "https://lamobilery.github.io/emile-magique/" : undefined,
images: {
loader: "custom",
loaderFile: "./loader.ts",
},
images: isProd
? {
loader: "custom",
loaderFile: "./src/app/loader.ts",
}
: undefined,
};

module.exports = nextConfig;
2 changes: 1 addition & 1 deletion emile-magique/src/app/loader.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default function myImageLoader({ src }: { src: string }) {
return `https://lamobilery.github.io/emile-magique/${src}}`;
return `/emile-magique/${src}}`;
}

0 comments on commit 7b3568a

Please sign in to comment.