Skip to content

Why is fresh.gen.ts to be added to version control? #2394

Answered by marvinhagemeister
retog asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by retog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants