Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

environment.js 1.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  1. 'use strict';
  2. module.exports = function(environment) {
  3. let ENV = {
  4. modulePrefix: 'todo-app',
  5. environment,
  6. rootURL: '/',
  7. locationType: 'auto',
  8. EmberENV: {
  9. FEATURES: {
  10. // Here you can enable experimental features on an ember canary build
  11. // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
  12. },
  13. EXTEND_PROTOTYPES: {
  14. // Prevent Ember Data from overriding Date.parse.
  15. Date: false
  16. }
  17. },
  18. APP: {
  19. // Here you can pass flags/options to your application instance
  20. // when it is created
  21. }
  22. };
  23. if (environment === 'development') {
  24. // ENV.APP.LOG_RESOLVER = true;
  25. // ENV.APP.LOG_ACTIVE_GENERATION = true;
  26. // ENV.APP.LOG_TRANSITIONS = true;
  27. // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
  28. // ENV.APP.LOG_VIEW_LOOKUPS = true;
  29. }
  30. if (environment === 'test') {
  31. // Testem prefers this...
  32. ENV.locationType = 'none';
  33. // keep test console output quieter
  34. ENV.APP.LOG_ACTIVE_GENERATION = false;
  35. ENV.APP.LOG_VIEW_LOOKUPS = false;
  36. ENV.APP.rootElement = '#ember-testing';
  37. ENV.APP.autoboot = false;
  38. }
  39. if (environment === 'production') {
  40. // here you can enable a production-specific feature
  41. }
  42. return ENV;
  43. };
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...