Skip to content

Feature request for base_url option to be regular expression #372

Description

@camohub

This not a bug but feature request for base_url option to be regular expression. I have some dynamic element in image url and I would like to set up base_url option as regular expression. The real use case look like this, but of course it does not work with regexp.:

		$server = ServerFactory::create([
			'response' => new LaravelResponseFactory(app('request')),
			'source' => Storage::disk('do-files')->getDriver(),
			'cache' => Storage::disk('local')->getDriver(),
			'cache_path_prefix' => '/images/cache',
			'base_url' => '#^https://simplaq-portal-files-test-only.[^.]+.digitaloceanspaces.com/#',
		]);

Is it possible to do it? Thanks for response.

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