Config.json disapperaing

So im creating a discord bot, when i create a config.json file, it always disappear when i refresh the page

Any ideas why is that?

There are a few possible reasons (https://glitch.com/help/hidden-files/). To check - are you creating it in a particular directory? Do you have a .gitignore file in your project that lists it? Thanks.

i do have a .gitignore file, is that the reason it’s disappearing?

What is the contents of it?

Yes, files that are .gitignored will disappear from the editor when your project restarts. You can still access them through the console (accessed through the logs view).

1 Like