Skip to content

Commit 9838c93

Browse files
committed
[repo] Update URL for new URL
This commit also changes env vars to capitalised values because github only supports capitals.
1 parent 81f4be4 commit 9838c93

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.env.default

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# The default URL for build content is https://develop.moodle.org.
44
# For local development you may wish to specify an alternative for your own environment.
55
#
6-
# url=http://localhost
7-
# url=https://develop.moodle.org
6+
# URL=http://localhost
7+
# URL=https://moodledev.io
88

99
# Base URL
1010
# ========
@@ -14,5 +14,5 @@
1414
# For example, if you have your content hosted locally at http://localhost/devdocs Then the baseUrl would be `devdocs`.
1515
# The default value is `/`.
1616
#
17-
# baseUrl=/devdocs/
18-
# baseUrl=/
17+
# BASEURL=/devdocs/
18+
# BASEURL=/

docusaurus.config.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ const getBaseUrl = () => {
4444
return '/';
4545
}
4646

47-
if (typeof process.env.baseUrl !== 'undefined') {
47+
if (typeof process.env.BASEURL !== 'undefined') {
4848
// Respect the env.
49-
return process.env.baseUrl;
49+
return process.env.BASEURL;
5050
}
5151

5252
// Default is currently '/devdocs'.
@@ -57,9 +57,9 @@ const getBaseUrl = () => {
5757
const config = {
5858
title: 'Moodle',
5959
tagline: '(Un)official Developer Resources',
60-
// eslint-disable-next-line spaced-comment
60+
6161
// url: 'https://develop.moodle.org',
62-
url: process.env?.url || 'https://moodle.github.io',
62+
url: process.env?.URL || 'https://moodledev.io',
6363
baseUrl: getBaseUrl(),
6464
trailingSlash: false,
6565
onBrokenLinks: 'throw',

0 commit comments

Comments
 (0)