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

Custom domain path #47

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Custom domain path #47

wants to merge 3 commits into from

Conversation

zhiyue
Copy link

@zhiyue zhiyue commented Nov 20, 2024

issue:#45

This pull request introduces a new feature for customizing the image URL path in the AWS S3 uploader configuration. The most important changes include updating the README.md file, modifying the configuration interface, and adjusting the implementation to support the new urlPath option.

Documentation updates:

  • README.md: Added a new urlPath option to the documentation for customizing the image path. [1] [2]

Configuration updates:

  • src/config.ts: Added urlPath to the IS3UserConfig interface.
  • src/index.ts: Updated the default configuration and user configuration to include urlPath. Renamed customImagePath to urlPath in the configuration options. [1] [2]

Implementation updates:

* **src/config.ts**
  - Add `customImagePath` property to `IS3UserConfig` interface

* **src/index.ts**
  - Add `customImagePath` to defaultConfig in `config` function
  - Add `customImagePath` configuration option in `handle` function
  - Update `handle` function to use `customImagePath` for returned URL

* **src/uploader.ts**
  - Add `customImagePath` to `createUploadTaskOpts` interface
  - Update `createUploadTask` function to use `customImagePath` if provided

* **README.md**
  - Add documentation for `customImagePath` option
  - Include example usage of `customImagePath` option
* **src/config.ts**
  - Rename `customImagePath` property to `urlPath` in the `IS3UserConfig` interface

* **src/index.ts**
  - Rename `customImagePath` property to `urlPath` in the default configuration
  - Rename `customImagePath` property to `urlPath` in the user configuration options

* **src/uploader.ts**
  - Rename `customImagePath` property to `urlPath` in the `createUploadTask` function

* **README.md**
  - Rename `customImagePath` property to `urlPath` in the documentation
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.

1 participant