-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
docs: image and file cdn adapter docs #38744
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gatsbot
bot
added
the
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
label
Dec 6, 2023
pieh
commented
Dec 6, 2023
@@ -146,6 +146,7 @@ The `config` hook has to return an object with the following keys: | |||
- `pathPrefix` (Optional): If `false`, Gatsby will fail the build if user tries to use pathPrefix | |||
- `trailingSlash` (Optional): Provide an array of supported [`trailingSlash`](/docs/reference/config-files/gatsby-config/#trailingslash) options, e.g. `['always']` | |||
- `pluginsToDisable` (Optional): Provide an array of plugin names that should be disabled when adapter is used. Purpose of this is to disable any potential plugins that serve similar role as adapter that would cause conflicts when both plugin and adapter is used at the same time. | |||
- `imageCDNUrlGeneratorModulePath` (Optional): Specifies the absolute path to a CommonJS module that exports a function to generate CDN URLs for images. This function, matching the `ImageCdnUrlGeneratorFn` type signature, takes `ImageCdnSourceImage` and `ImageCdnTransformArgs` as arguments to create optimized CDN URLs for image assets. It is particularly useful for adapting image paths to different CDN providers to optimize image delivery. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to add fileCDNUrlGeneratorModulePath
and specify gatsby version it first will be available in (likely [email protected]
)
pieh
added
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
topic: adapters
Related to Gatsby Adapters
and removed
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
labels
Dec 6, 2023
@pieh is this mergeable? |
serhalp
force-pushed
the
docs/adapters-image-file-cdn
branch
from
June 28, 2024 13:05
21a01e0
to
2e979e2
Compare
serhalp
approved these changes
Jun 28, 2024
…d remoteFileAllowedUrls field description
serhalp
force-pushed
the
docs/adapters-image-file-cdn
branch
from
June 28, 2024 13:09
2e979e2
to
f753610
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
status: accepted
topic: adapters
Related to Gatsby Adapters
type: documentation
An issue or pull request for improving or updating Gatsby's documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Supporting docs for feature from #38685
Documentation
Tests
Related Issues