Home
Support Forums

Accidentally deleted .lsfconfig

Hello, is there a way to restore my .lsconfig file? I accidentally deleted it before committing after setting up Large Media.

Hi, @rickhlx. Yes, there is actually!

The format of that file is this:

[lfs]
	url = https://<SITE API ID HERE>.netlify.app/.netlify/large-media

It is just those two line. You can find the site id using netlify status in the repo directory of the site or in the web UI under Site Name > Settings > General > Site details. For example, if you site’s subdomain is happy-scientist-123456 then you can get that information here:

https://app.netlify.com/sites/happy-scientist-123456/settings/general#site-information

Let’s say the Site API ID looks like this (which is a randomly generated and not a actual value for a site at Netlify): 9a2c6915-cd4d-4893-a9fa-2d30981e3b79

If so, the .lfsconfig file would look like this:

[lfs]
	url = https://9a2c6915-cd4d-4893-a9fa-2d30981e3b79.netlify.app/.netlify/large-media

If that doesn’t work or if there are other questions, please let us know.

2 Likes

Thank you! That worked!

1 Like