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

Feature request for base_url option to be regular expression #372

Open
camohub opened this issue Jul 20, 2023 · 0 comments
Open

Feature request for base_url option to be regular expression #372

camohub opened this issue Jul 20, 2023 · 0 comments

Comments

@camohub
Copy link

camohub commented Jul 20, 2023

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.

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

No branches or pull requests

1 participant