Skip to content

fix: add missing server endpoint for playground await example (#891)#1871

Open
AbdullahShafqat-OG wants to merge 1 commit into
sveltejs:mainfrom
AbdullahShafqat-OG:await-blocks-missing-endpoint
Open

fix: add missing server endpoint for playground await example (#891)#1871
AbdullahShafqat-OG wants to merge 1 commit into
sveltejs:mainfrom
AbdullahShafqat-OG:await-blocks-missing-endpoint

Conversation

@AbdullahShafqat-OG
Copy link
Copy Markdown
Contributor

The Await blocks playground example was failing due to a missing server endpoint for the random-number API. This PR restores the endpoint so the example works as intended.

The implementation for the API was located in the archived learn.svelte.dev repository and has been adjusted slightly to fit the current playground structure.

A comment has also been added in the code to help users understand what the underlying API is doing.

Partially fixes #891

Before

image

After

image

Note:
This PR only addresses the first part of #891 regarding the /await-blocks fetch issue. A separate PR will follow to fix the missing CSS in the /svelte-head playground example.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 17, 2026

@AbdullahShafqat-OG is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

@AbdullahShafqat-OG AbdullahShafqat-OG force-pushed the await-blocks-missing-endpoint branch 2 times, most recently from 93347e2 to b31fd71 Compare March 29, 2026 16:09
@AbdullahShafqat-OG AbdullahShafqat-OG force-pushed the await-blocks-missing-endpoint branch 2 times, most recently from 15721b4 to 681cde2 Compare April 8, 2026 18:16
@AbdullahShafqat-OG AbdullahShafqat-OG force-pushed the await-blocks-missing-endpoint branch from 681cde2 to 5f68b63 Compare May 25, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken URI refs in Playground examples.

1 participant