more environments
							parent
							
								
									55d2730a7a
								
							
						
					
					
						commit
						890fc2aafa
					
				
							
								
								
									
										58
									
								
								angular.json
								
								
								
								
							
							
						
						
									
										58
									
								
								angular.json
								
								
								
								
							| 
						 | 
					@ -66,6 +66,64 @@
 | 
				
			||||||
                  "maximumError": "10kb"
 | 
					                  "maximumError": "10kb"
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
              ]
 | 
					              ]
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "gitlab": {
 | 
				
			||||||
 | 
					              "fileReplacements": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "replace": "src/environments/environment.ts",
 | 
				
			||||||
 | 
					                  "with": "src/environments/environment.gitlab.ts"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					              ],
 | 
				
			||||||
 | 
					              "optimization": true,
 | 
				
			||||||
 | 
					              "outputHashing": "all",
 | 
				
			||||||
 | 
					              "sourceMap": true,
 | 
				
			||||||
 | 
					              "extractCss": true,
 | 
				
			||||||
 | 
					              "namedChunks": true,
 | 
				
			||||||
 | 
					              "aot": true,
 | 
				
			||||||
 | 
					              "extractLicenses": true,
 | 
				
			||||||
 | 
					              "vendorChunk": true,
 | 
				
			||||||
 | 
					              "buildOptimizer": true,
 | 
				
			||||||
 | 
					              "budgets": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "type": "initial",
 | 
				
			||||||
 | 
					                  "maximumWarning": "2mb",
 | 
				
			||||||
 | 
					                  "maximumError": "5mb"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "type": "anyComponentStyle",
 | 
				
			||||||
 | 
					                  "maximumWarning": "6kb",
 | 
				
			||||||
 | 
					                  "maximumError": "10kb"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					              ]
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "ipfs": {
 | 
				
			||||||
 | 
					              "fileReplacements": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "replace": "src/environments/environment.ts",
 | 
				
			||||||
 | 
					                  "with": "src/environments/environment.ipfs.ts"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					              ],
 | 
				
			||||||
 | 
					              "optimization": true,
 | 
				
			||||||
 | 
					              "outputHashing": "all",
 | 
				
			||||||
 | 
					              "sourceMap": true,
 | 
				
			||||||
 | 
					              "extractCss": true,
 | 
				
			||||||
 | 
					              "namedChunks": true,
 | 
				
			||||||
 | 
					              "aot": true,
 | 
				
			||||||
 | 
					              "extractLicenses": true,
 | 
				
			||||||
 | 
					              "vendorChunk": true,
 | 
				
			||||||
 | 
					              "buildOptimizer": true,
 | 
				
			||||||
 | 
					              "budgets": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "type": "initial",
 | 
				
			||||||
 | 
					                  "maximumWarning": "2mb",
 | 
				
			||||||
 | 
					                  "maximumError": "5mb"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "type": "anyComponentStyle",
 | 
				
			||||||
 | 
					                  "maximumWarning": "6kb",
 | 
				
			||||||
 | 
					                  "maximumError": "10kb"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					              ]
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4,9 +4,10 @@
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
    "ng": "ng",
 | 
					    "ng": "ng",
 | 
				
			||||||
    "start": "ng serve --ssl",
 | 
					    "start": "ng serve --ssl",
 | 
				
			||||||
    "build": "ng build",
 | 
					    "build": "ng build --base-href /",
 | 
				
			||||||
    "build:prod": "ng build --prod",
 | 
					    "build:prod": "ng build --configuration=production --base-href /",
 | 
				
			||||||
    "build:gitlab": "ng build --prod --base-href /public-gateway-cacher/",
 | 
					    "build:gitlab": "ng build --configuration=gitlab --base-href /public-gateway-cacher/",
 | 
				
			||||||
 | 
					    "build:ipfs": "ng build --configuration=ipfs",
 | 
				
			||||||
    "test": "ng test",
 | 
					    "test": "ng test",
 | 
				
			||||||
    "lint": "ng lint",
 | 
					    "lint": "ng lint",
 | 
				
			||||||
    "e2e": "ng e2e",
 | 
					    "e2e": "ng e2e",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,6 @@
 | 
				
			||||||
import { NgModule } from '@angular/core';
 | 
					import { NgModule } from '@angular/core';
 | 
				
			||||||
import { RouterModule, Routes } from '@angular/router';
 | 
					import { RouterModule, Routes } from '@angular/router';
 | 
				
			||||||
 | 
					import { environment } from '../environments/environment';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const routes: Routes = [{
 | 
					const routes: Routes = [{
 | 
				
			||||||
  path: '',
 | 
					  path: '',
 | 
				
			||||||
| 
						 | 
					@ -7,7 +8,7 @@ const routes: Routes = [{
 | 
				
			||||||
}];
 | 
					}];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@NgModule({
 | 
					@NgModule({
 | 
				
			||||||
  imports: [RouterModule.forRoot(routes, { useHash: true })],
 | 
					  imports: [RouterModule.forRoot(routes, { useHash: environment.useHash })],
 | 
				
			||||||
  exports: [RouterModule]
 | 
					  exports: [RouterModule]
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
export class AppRoutingModule { }
 | 
					export class AppRoutingModule { }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					export interface Environment {
 | 
				
			||||||
 | 
					  production: boolean;
 | 
				
			||||||
 | 
					  base_href?: string;
 | 
				
			||||||
 | 
					  useHash: boolean;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					import { Environment } from '../app/interfaces/environment';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const environment: Environment = {
 | 
				
			||||||
 | 
					  production: true,
 | 
				
			||||||
 | 
					  base_href: '/public-gateway-cacher',
 | 
				
			||||||
 | 
					  useHash: false,
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					import { Environment } from '../app/interfaces/environment';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const environment: Environment = {
 | 
				
			||||||
 | 
					  production: true,
 | 
				
			||||||
 | 
					  useHash: true,
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,7 @@
 | 
				
			||||||
export const environment = {
 | 
					import { Environment } from '../app/interfaces/environment';
 | 
				
			||||||
  production: true
 | 
					
 | 
				
			||||||
 | 
					export const environment: Environment = {
 | 
				
			||||||
 | 
					  production: true,
 | 
				
			||||||
 | 
					  base_href: '/',
 | 
				
			||||||
 | 
					  useHash: false,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,13 @@
 | 
				
			||||||
 | 
					import { Environment } from '../app/interfaces/environment';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This file can be replaced during build by using the `fileReplacements` array.
 | 
					// This file can be replaced during build by using the `fileReplacements` array.
 | 
				
			||||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
 | 
					// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
 | 
				
			||||||
// The list of file replacements can be found in `angular.json`.
 | 
					// The list of file replacements can be found in `angular.json`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const environment = {
 | 
					export const environment: Environment = {
 | 
				
			||||||
  production: false
 | 
					  production: false,
 | 
				
			||||||
 | 
					  base_href: '/',
 | 
				
			||||||
 | 
					  useHash: false,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue