Netlify option to show directory contents

6.2k Views Asked by At

I need to list contents of my site directory on Netlify for debug, but I can not find an option to turn on directory listings. Am I right that there is no such autoindex ability in Netlify as mod_autoindex provides for Apache?

UPDATE: I tried generating index with tree -H '.' -L 1 > index.html, but `tree at Netlify is not installed. Maybe there is an alternative in Python, Ruby or npm repositories?

2

There are 2 best solutions below

2
talves On BEST ANSWER

There is an option to download your deployed site for debugging, but there is not a way to list the contents of a deployed directory at this time.

Steps:

  • Login to https://app.netlify.com
  • Select the site you want to see
  • Click on Deploys from the top menu
  • Select the deploy you want to download
  • Click on the download icon next to the deployed date shown below:

enter image description here

0
crb On

Netlify added support for viewing files in a deployment in October 2023. You access this through the site dashboard, just like the download option mentioned in the other answer.

Netlify deploy file browser