Deploy website to GitHub Pages
This commit is contained in:
@@ -4,10 +4,19 @@
|
||||
*/
|
||||
import "./src/env.js";
|
||||
|
||||
const isGitHubPages = process.env.GITHUB_PAGES === "true";
|
||||
|
||||
/** @type {import("next").NextConfig} */
|
||||
const config = {
|
||||
...(isGitHubPages
|
||||
? {
|
||||
output: "export",
|
||||
trailingSlash: true,
|
||||
}
|
||||
: {}),
|
||||
images: {
|
||||
qualities: [75, 92],
|
||||
unoptimized: isGitHubPages,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user