How do I add a file to the public folder when developing for web?

Please provide the following:

  1. SDK Version: Expo 49
  2. Platforms(Android/iOS/web/all): Web
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

I want to add a file to the public folder or root of a website and I need it for when developing locally. Usually I run

npx expo start --web

and it opens up a browser pointing to localhost. But I need a file to be at the root folder. I’m using webpack not metro. Any ideas?

OK I figured it out. It’s not super obvious, but you can add static files to web folder (create on root) and the files will get copied over.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.