Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$routes = [];
if ($_SERVER['ENV'] === 'production') {
$routes = [
'base-connect' => ['hostname' => 'connect.mysite.com', 'secure' => true]
];
} else {
$routes = [
'base-connect' => ['hostname' => 'connect.localhost.com'];
]
}
return [
'router' => [
'routes' => [
$routes,
'oauth' => ['prepend_by' => 'base-connect']
]
]
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.