Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Failed to load subscription client when CDN is enabled #463

Closed
@sr1977

Description

@sr1977

When I configure CDN to be enabled, with a subscription endpoint specified - I'm getting a 404 error with the loading of subscriptions-transport-ws-browser-client.js - it appears to be defaulting to being served locally, which I think is down to this:

replacements.put("subscriptionsTransportWsBrowserClientUrl", joinStaticPath(staticBasePath,
"subscriptions-transport-ws-browser-client.js"));

The app is hosted in k8s, so I don't want to have to put in complex ingress rules for this. I have another app without a subscription and that works fine.

I am using graphiql-spring-boot-starter:7.1.0 and my application.yaml has:

graphiql:
  mapping: /graphiql
  cdn:
    enabled: true
    version: 0.17.5
  endpoint:
    graphql: /graphql
    subscriptions: /subscriptions 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions