-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev/Prod mode? #84
Comments
There hasn't been a ton of progress on this front but I do want to clarify to anyone reading the thread that we do have docs on how to deploy outside of Deno. Those docs do mention the environment variable:
Ideally this would just be something like |
Fresh does not really have much of a prod vs dev mode. The main difference is how caching works. For caching to work correctly in prod, a unique identifier representing the source code (ie the git commit or a source code hash) needs to be provided to fresh. This is done via the |
https://github.com/lucacasonato/fresh/blob/95289380f3f8bb85c8cc2d0fc3e5ab2ab4de9962/src/server/context.ts#L39
Dev/Prod mode is determined by assuming the end user is using Deno Deploy. I just set a random string for now in my use case but would be nice if this was a config option or something agnostic to the deployment environment. Or even just something to mention how to manually override in the docs.
The text was updated successfully, but these errors were encountered: