We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d61504 + 6bf4cfe commit cea88abCopy full SHA for cea88ab
1 file changed
.devcontainer/codespace.config.php
@@ -7,6 +7,19 @@
7
$codespaceName = getenv('CODESPACE_NAME');
8
$codespaceDomain = getenv('GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN');
9
10
+// When running under Apache, env vars from the shell profile are not inherited.
11
+// Fall back to the Codespaces shared environment file and the well-known domain.
12
+if (empty($codespaceName)) {
13
+ $sharedEnvFile = '/workspaces/.codespaces/shared/environment-variables.json';
14
+ if (is_readable($sharedEnvFile)) {
15
+ $sharedEnv = json_decode(file_get_contents($sharedEnvFile), true) ?? [];
16
+ $codespaceName = $sharedEnv['CODESPACE_NAME'] ?? '';
17
+ }
18
+}
19
+if (!empty($codespaceName) && empty($codespaceDomain)) {
20
+ $codespaceDomain = 'app.github.dev';
21
22
+
23
$CONFIG = [
24
'mail_from_address' => 'no-reply',
25
'mail_smtpmode' => 'smtp',
0 commit comments