Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Networking/Networking/Settings/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public struct Settings {
public static var wordpressApiBaseURL: String = {
if ProcessInfo.processInfo.arguments.contains("mocked-wpcom-api") {
return "http://localhost:8282/"
} else if let wpComApiBaseURL = ProcessInfo.processInfo.environment["wpcom-api-base-url"] {
return wpComApiBaseURL
}

return "https://public-api.wordpress.com/"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@
isEnabled = "NO">
</CommandLineArgument>
</CommandLineArguments>
<EnvironmentVariables>
<EnvironmentVariable
key = "wpcom-api-base-url"
value = ""
isEnabled = "NO">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down