Why is fresh.gen.ts
to be added to version control?
#2394
-
In my book generated files never go to version control. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Before we introduce the build mode in Fresh a few months ago, everyone was using the automatic deployment mode in Deno Deploy. The way that works is that the contents of the GitHub repository is deployed directly without any additional steps in between. This means that there was no place in the process to generate files. That's where the recommendation to check If you're using the build mode you should be able to exclude it. With the upcoming Fresh 2.0 release we went a step further and removed the need for having such a file entirely. |
Beta Was this translation helpful? Give feedback.
Before we introduce the build mode in Fresh a few months ago, everyone was using the automatic deployment mode in Deno Deploy. The way that works is that the contents of the GitHub repository is deployed directly without any additional steps in between. This means that there was no place in the process to generate files. That's where the recommendation to check
fresh.gen.ts
into version control comes from.If you're using the build mode you should be able to exclude it. With the upcoming Fresh 2.0 release we went a step further and removed the need for having such a file entirely.