mirror of
https://github.com/kennethnym/freya
synced 2026-07-05 23:41:14 +01:00
fix: require server env vars (#129)
This commit is contained in:
@@ -30,7 +30,7 @@ describe("GoogleMapsSourceProvider", () => {
|
||||
|
||||
test("throws when service API key is empty", () => {
|
||||
expect(() => new GoogleMapsSourceProvider({ apiKey: "" })).toThrow(
|
||||
"Google Maps MCP API key must be configured",
|
||||
"Google Maps API key must be configured",
|
||||
)
|
||||
})
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export class GoogleMapsSourceProvider implements FeedSourceProvider {
|
||||
|
||||
constructor(options: GoogleMapsSourceProviderOptions) {
|
||||
if (!nonEmptyString(options.apiKey)) {
|
||||
throw new Error("Google Maps MCP API key must be configured")
|
||||
throw new Error("Google Maps API key must be configured")
|
||||
}
|
||||
|
||||
this.apiKey = options.apiKey
|
||||
|
||||
Reference in New Issue
Block a user