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

DNS to Object Storage from Vercel DNS #31

Open
btakita opened this issue Oct 16, 2023 · 1 comment
Open

DNS to Object Storage from Vercel DNS #31

btakita opened this issue Oct 16, 2023 · 1 comment

Comments

@btakita
Copy link

btakita commented Oct 16, 2023

Since I'm not using Cloudflare, could you provide a sample project using a Vercel edge function?

@btakita
Copy link
Author

btakita commented Oct 16, 2023

Vercel has rewrite rules in the vercel.json file at the root of the project.

{
	"rewrites": [
		{
			"source": "/assets/:path*",
			"destination": "https://usc1.contabostorage.com/1122334455%3Abucket-name/:path*"
		}
	]
}

Note the need to url encode the : with %3A.

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