Skip to content

Add headers property to Image widget documentation and usage example#102

Open
usmanvrtx wants to merge 1 commit intomainfrom
image-widget-headers
Open

Add headers property to Image widget documentation and usage example#102
usmanvrtx wants to merge 1 commit intomainfrom
image-widget-headers

Conversation

@usmanvrtx
Copy link
Copy Markdown

PR Summary

Add documentation for Image.headers support in the Image widget.

What changed

  • Updated content/widgets/Image.mdx
  • Added headers to the Image widget properties table
  • Added usage examples for:
    • image rendering without custom headers
    • image rendering with custom network request headers

Why

This documents the new Image widget support for passing custom HTTP headers when loading network images, matching the widget implementation.

Notes

  • The example uses Authorization and Accept header entries
  • This is a docs-only update for the Image widget

@usmanvrtx usmanvrtx requested a review from TheNoumanDev April 6, 2026 20:58
@usmanvrtx usmanvrtx self-assigned this Apr 6, 2026
@usmanvrtx usmanvrtx added the documentation Improvements or additions to documentation label Apr 6, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
ensemble-docs c339655 Apr 06 2026, 08:58 PM

| styles | object | [See properties](#styles) |

### styles
## Usage
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage??

@EnsembleUI EnsembleUI deleted a comment from vercel bot Apr 7, 2026
@sharjeelyunus
Copy link
Copy Markdown
Member

image

build error log

2026-04-06T20:56:24.280Z	Initializing build environment...
2026-04-06T20:56:26.933Z	Success: Finished initializing build environment
2026-04-06T20:56:28.966Z	Cloning repository...
2026-04-06T20:56:32.104Z	No build output detected to cache. Skipping.
2026-04-06T20:56:32.104Z	No dependencies detected to cache. Skipping.
2026-04-06T20:56:32.988Z	Detected the following tools from environment: nodejs@22.22.2, bun@1.2.15
2026-04-06T20:56:32.988Z	Installing nodejs 22.22.2
2026-04-06T20:56:38.557Z	Installing project dependencies: bun install
2026-04-06T20:56:38.781Z	bun install v1.2.15 (df017990)
2026-04-06T20:56:38.830Z	Resolving dependencies
2026-04-06T20:56:48.778Z	Resolved, downloaded and extracted [1896]
2026-04-06T20:56:50.931Z	Saved lockfile
2026-04-06T20:56:50.932Z	
2026-04-06T20:56:50.932Z	+ @types/node@25.5.2
2026-04-06T20:56:50.932Z	+ @types/react@19.2.14
2026-04-06T20:56:50.932Z	+ @types/react-dom@19.2.3
2026-04-06T20:56:50.932Z	+ pagefind@1.5.0
2026-04-06T20:56:50.932Z	+ typescript@5.9.3 (v6.0.2 available)
2026-04-06T20:56:50.932Z	+ next@15.5.14 (v16.2.2 available)
2026-04-06T20:56:50.932Z	+ nextra@4.6.1
2026-04-06T20:56:50.933Z	+ nextra-theme-docs@4.6.1
2026-04-06T20:56:50.933Z	+ react@19.2.4
2026-04-06T20:56:50.933Z	+ react-dom@19.2.4
2026-04-06T20:56:50.933Z	
2026-04-06T20:56:50.933Z	456 packages installed [12.21s]
2026-04-06T20:56:52.263Z	Executing user build command: npm run build
2026-04-06T20:56:52.605Z	
2026-04-06T20:56:52.605Z	> nextra-docs-template@0.0.1 build
2026-04-06T20:56:52.605Z	> next build
2026-04-06T20:56:52.605Z	
2026-04-06T20:56:53.324Z	 ⚠ Specified "redirects" will not automatically work with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
2026-04-06T20:56:53.328Z	⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
2026-04-06T20:56:53.332Z	Attention: Next.js now collects completely anonymous telemetry regarding usage.
2026-04-06T20:56:53.332Z	This information is used to shape Next.js' roadmap and prioritize features.
2026-04-06T20:56:53.332Z	You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2026-04-06T20:56:53.333Z	https://nextjs.org/telemetry
2026-04-06T20:56:53.333Z	
2026-04-06T20:56:53.427Z	   ▲ Next.js 15.5.14
2026-04-06T20:56:53.427Z	   - Experiments (use with caution):
2026-04-06T20:56:53.427Z	     · optimizePackageImports
2026-04-06T20:56:53.427Z	
2026-04-06T20:56:53.483Z	   Creating an optimized production build ...
2026-04-06T20:56:56.169Z	- warn [nextra] The repository is shallow cloned, so the latest modified time will not be presented.
2026-04-06T20:58:09.808Z	 ✓ Compiled successfully in 76s
2026-04-06T20:58:09.825Z	   Linting and checking validity of types ...
2026-04-06T20:58:13.821Z	   Collecting page data ...
2026-04-06T20:58:18.807Z	   Generating static pages (0/256) ...
2026-04-06T20:58:23.572Z	Error occurred prerendering page "/actions/request-notification-access". Read more: https://nextjs.org/docs/messages/prerender-error
2026-04-06T20:58:23.572Z	ReferenceError: Element is not defined
2026-04-06T20:58:23.572Z	    at h (.next/server/chunks/365.js:35:4083)
2026-04-06T20:58:23.572Z	    at i (.next/server/chunks/365.js:35:4125)
2026-04-06T20:58:23.573Z	    at x.render (.next/server/chunks/365.js:35:13188) {
2026-04-06T20:58:23.573Z	  digest: '719501941'
2026-04-06T20:58:23.573Z	}
2026-04-06T20:58:23.573Z	Export encountered an error on /[[...mdxPath]]/page: /actions/request-notification-access, exiting the build.
2026-04-06T20:58:23.617Z	 ⨯ Next.js build worker exited with code: 1 and signal: null
2026-04-06T20:58:23.957Z	Failed: error occurred while running build command
2026-04-06T20:56:24.280Z	Initializing build environment...
2026-04-06T20:56:26.933Z	Success: Finished initializing build environment
2026-04-06T20:56:28.966Z	Cloning repository...
2026-04-06T20:56:32.104Z	No build output detected to cache. Skipping.
2026-04-06T20:56:32.104Z	No dependencies detected to cache. Skipping.
2026-04-06T20:56:32.988Z	Detected the following tools from environment: nodejs@22.22.2, bun@1.2.15
2026-04-06T20:56:32.988Z	Installing nodejs 22.22.2
2026-04-06T20:56:38.557Z	Installing project dependencies: bun install
2026-04-06T20:56:38.781Z	bun install v1.2.15 (df017990)
2026-04-06T20:56:38.830Z	Resolving dependencies
2026-04-06T20:56:48.778Z	Resolved, downloaded and extracted [1896]
2026-04-06T20:56:50.931Z	Saved lockfile
2026-04-06T20:56:50.932Z	
2026-04-06T20:56:50.932Z	+ @types/node@25.5.2
2026-04-06T20:56:50.932Z	+ @types/react@19.2.14
2026-04-06T20:56:50.932Z	+ @types/react-dom@19.2.3
2026-04-06T20:56:50.932Z	+ pagefind@1.5.0
2026-04-06T20:56:50.932Z	+ typescript@5.9.3 (v6.0.2 available)
2026-04-06T20:56:50.932Z	+ next@15.5.14 (v16.2.2 available)
2026-04-06T20:56:50.932Z	+ nextra@4.6.1
2026-04-06T20:56:50.933Z	+ nextra-theme-docs@4.6.1
2026-04-06T20:56:50.933Z	+ react@19.2.4
2026-04-06T20:56:50.933Z	+ react-dom@19.2.4
2026-04-06T20:56:50.933Z	
2026-04-06T20:56:50.933Z	456 packages installed [12.21s]
2026-04-06T20:56:52.263Z	Executing user build command: npm run build
2026-04-06T20:56:52.605Z	
2026-04-06T20:56:52.605Z	> nextra-docs-template@0.0.1 build
2026-04-06T20:56:52.605Z	> next build
2026-04-06T20:56:52.605Z	
2026-04-06T20:56:53.324Z	 ⚠ Specified "redirects" will not automatically work with "output: export". See more info here: https://nextjs.org/docs/messages/export-no-custom-routes
2026-04-06T20:56:53.328Z	⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
2026-04-06T20:56:53.332Z	Attention: Next.js now collects completely anonymous telemetry regarding usage.
2026-04-06T20:56:53.332Z	This information is used to shape Next.js' roadmap and prioritize features.
2026-04-06T20:56:53.332Z	You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2026-04-06T20:56:53.333Z	https://nextjs.org/telemetry
2026-04-06T20:56:53.333Z	
2026-04-06T20:56:53.427Z	   ▲ Next.js 15.5.14
2026-04-06T20:56:53.427Z	   - Experiments (use with caution):
2026-04-06T20:56:53.427Z	     · optimizePackageImports
2026-04-06T20:56:53.427Z	
2026-04-06T20:56:53.483Z	   Creating an optimized production build ...
2026-04-06T20:56:56.169Z	- warn [nextra] The repository is shallow cloned, so the latest modified time will not be presented.
2026-04-06T20:58:09.808Z	 ✓ Compiled successfully in 76s
2026-04-06T20:58:09.825Z	   Linting and checking validity of types ...
2026-04-06T20:58:13.821Z	   Collecting page data ...
2026-04-06T20:58:18.807Z	   Generating static pages (0/256) ...
2026-04-06T20:58:23.572Z	Error occurred prerendering page "/actions/request-notification-access". Read more: https://nextjs.org/docs/messages/prerender-error
2026-04-06T20:58:23.572Z	ReferenceError: Element is not defined
2026-04-06T20:58:23.572Z	    at h (.next/server/chunks/365.js:35:4083)
2026-04-06T20:58:23.572Z	    at i (.next/server/chunks/365.js:35:4125)
2026-04-06T20:58:23.573Z	    at x.render (.next/server/chunks/365.js:35:13188) {
2026-04-06T20:58:23.573Z	  digest: '719501941'
2026-04-06T20:58:23.573Z	}
2026-04-06T20:58:23.573Z	Export encountered an error on /[[...mdxPath]]/page: /actions/request-notification-access, exiting the build.
2026-04-06T20:58:23.617Z	 ⨯ Next.js build worker exited with code: 1 and signal: null
2026-04-06T20:58:23.957Z	Failed: error occurred while running build command

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

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants