This Salesforce official doc says:

Static resources must reside in the /main/default/staticresources directory

Is this an outdated document?

In my understanding, you can put this in your own folder structure, i.e


So long as the containing directory is named staticresources right?

Can someone please confirm, this is super confusing @Salesforce.

1 Answer 1


No, it doesn't have to be /main/default/staticresources. It does, of course, need to be "staticresources" at the bottom level, but the folder structure is otherwise however you'd like it to be to organize your files.

  • thanks @sfdxfox. anyone at Salesforce seeing this, plz fix your doc. Sep 9, 2018 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.