feat: `baseURL` editable at runtime
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 331
- Avg merge
- 19h 52m
- Merged PRs (30d)
- 9
Description
Are there any plans to add other providers the ability to edit the baseURL at runtime?
Personally I would do something like (inside {provider}.ts):
if (!baseURL) {
baseURL = joinURL(useRuntimeConfig().public.image.directus.baseURL, '/assets')
}
so that each provider (for those that need to) could add its own base URI.
What needs to be done in order to make useRuntimeConfig().public.image.{provider}.baseURL available to be edited at runtime?
P.S.: while reading #778 I noticed that there could be problems accessing useRuntimeConfig
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the provider implementations in {provider}.ts and the discussion in issue #778, focusing on how useRuntimeConfig is accessed. Determine which providers need a runtime-editable baseURL and how that configuration should be exposed; done means the intended runtime behavior and provider scope are defined and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100