Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standalone via CDN stopped working #653

Open
milandinic opened this issue Feb 7, 2025 · 10 comments
Open

Standalone via CDN stopped working #653

milandinic opened this issue Feb 7, 2025 · 10 comments

Comments

@milandinic
Copy link

milandinic commented Feb 7, 2025

Can't say exactly since when, but I can say really recently Standalone via CDN stopped working.
We get 404 page for all endpoints.

I can see that it is the same for the examples you have provided

Rick & Morty API
Pet Store API

Image
Image

@Jeroen-Ximedes
Copy link

Any news on this? Our documentation is currently broken, second time this year

@mosch
Copy link
Contributor

mosch commented Feb 10, 2025

Hey thanks for the feedback & for reporting this issue! We're discontent that the Standalone version is broken.
With the current way we're developing Zudoku this has been harder to maintain. We're working on a plan on how we can keep supporting this, but unfortunalty we don't have a solution right now.

Please give us some time to sort this out.

I'd love to learn more about your use cases: Is switching to the full version an option for you? If now why?

@Jeroen-Ximedes
Copy link

Thanks for answering @mosch maybe you can send us the old JS files, the versions that were still working, so we can host them ourselves for now?

That gives you time to fix it and us time to switch to the full version

(main reason for not switching now is having some other priorities that need our attention and when we started using your tools the full version did not work properly so we decided to start with the standalone solution).

@mosch
Copy link
Contributor

mosch commented Feb 10, 2025

@Jeroen-Ximedes – we keep hosting every version, you can access them instead of the latest version. You can try 0.27.0 and see if it works. It's hosted here: https://cdn.zudoku.dev/0.27.0/main.js

@Jeroen-Ximedes
Copy link

Thanks @mosch - it did not change anything unfortunately, we also tried 0.26. Do we also need to use another css version or something?

@Jeroen-Ximedes
Copy link

This might be the problem?

main-C_-tw75B.js:10299 No `HydrateFallback` element provided to render during initial hydration

@dan-lee
Copy link
Contributor

dan-lee commented Feb 10, 2025

TIL for some reason the CDN versioned styles are called zudoku.css..
So this example works correctly for me:

<!doctype html>
<html>
  <head>
    <title></title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script
      type="module"
      src="https://cdn.zudoku.dev/0.27.0/main.js"
      crossorigin
    ></script>
    <link
      rel="stylesheet"
      href="https://cdn.zudoku.dev/0.27.0/zudoku.css"
      crossorigin
    />
  </head>
  <body>
    <div data-api-url="https://rickandmorty.zuplo.io/openapi.json"></div>
  </body>
</html>

Can you check again?

@Jeroen-Ximedes
Copy link

Unforunately it still does not work, which is strange since as far as we know it broke recently

I'll ask the team to try to go back a couple of versions maybe we just noticed it late

@Jeroen-Ximedes
Copy link

We got it working again with version 0.25

@mosch
Copy link
Contributor

mosch commented Feb 12, 2025

@Jeroen-Ximedes thanks for that feedback, that helps us find whats broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants