We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1eae7b commit 6403dacCopy full SHA for 6403dac
next.config.js
@@ -1,13 +1,11 @@
1
const createMDX = require("@next/mdx");
2
const path = require("path");
3
4
-// Make GH Pages work for forks as well as the main openfresno.org repo.
+// Make images work with relative GH Pages URLS.
5
const isGitHubActions = process.env.GITHUB_ACTIONS === "true";
6
-const isMainRepo =
7
- process.env.GITHUB_REPOSITORY === "openfresno/openfresno.org";
8
9
-// Only set basePath if it's a fork.
10
-const basePath = isGitHubActions && !isMainRepo ? "/openfresno.org" : "";
+// Only set basePath if it is on GitHub Pages.
+const basePath = isGitHubActions ? "/fe-openfresno.org-doc" : "";
11
12
/** @type {import('next').NextConfig} */
13
const nextConfig = {
0 commit comments