Skip to content

Commit

Permalink
fix graphql wss url
Browse files Browse the repository at this point in the history
  • Loading branch information
mipyykko committed Apr 12, 2023
1 parent 03542eb commit 752469a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion backend/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export default async (serverContext: ServerContext) => {
ApolloServerPluginDrainHttpServer({ httpServer }),
isProduction
? ApolloServerPluginLandingPageProductionDefault({
graphRef: "foo@mooc",
embed: true,
} as ApolloServerPluginEmbeddedLandingPageProductionDefaultOptions)
: ApolloServerPluginLandingPageLocalDefault(),
Expand Down
2 changes: 1 addition & 1 deletion frontend/lib/with-apollo-client/get-apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function create(
const wsLink = isBrowser
? new GraphQLWsLink(
createClient({
url: production ? "wss://www.mooc.fi/api/" : "ws://localhost:4000",
url: production ? "wss://www.mooc.fi/api" : "ws://localhost:4000",
}),
)
: null
Expand Down

0 comments on commit 752469a

Please sign in to comment.