Skip to content

feat: baseURL editable at runtime #899

Description

@sandros94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions