Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const environment = {
production: true,
apiRoot: "/api",
saasURL: ""
saasURL: "",
stagingHost: "rocketadmin-dev.tail9f8b2.ts.net" // Tailscale host
};
3 changes: 2 additions & 1 deletion frontend/src/environments/environment.saas-prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export const environment = {
saas: true,
apiRoot: "/api",
saasURL: "",
saasHostnames: ['app.rocketadmin.com', 'localhost', 'rocketadmin-dev.tail9f8b2.ts.net']
saasHostnames: ['app.rocketadmin.com', 'localhost', 'rocketadmin-dev.tail9f8b2.ts.net'],
stagingHost: "rocketadmin-dev.tail9f8b2.ts.net" // Tailscale host
};
3 changes: 2 additions & 1 deletion frontend/src/environments/environment.saas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export const environment = {
production: false,
apiRoot: "/api",
saasURL: "",
saasHostnames: ['app.rocketadmin.com', 'localhost', 'rocketadmin-dev.tail9f8b2.ts.net']
saasHostnames: ['app.rocketadmin.com', 'localhost', 'rocketadmin-dev.tail9f8b2.ts.net'],
stagingHost: "rocketadmin-dev.tail9f8b2.ts.net" // Tailscale host
};
5 changes: 3 additions & 2 deletions frontend/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

export const environment = {
production: false,
apiRoot: "/api"
apiRoot: "/api",
stagingHost: "rocketadmin-dev.tail9f8b2.ts.net" // Tailscale host
} as Record<string, any>;

/*
Expand All @@ -14,4 +15,4 @@ export const environment = {
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
3 changes: 2 additions & 1 deletion frontend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const colorConfig: IColorConfig<Palettes, Colors> = {
type Palettes = { primaryPalette: string, accentedPalette: string, warnPalette: string, whitePalette: string, accentedDarkPalette: string, warnDarkPalette: string };
type Colors = { myColorName: string };

const stripeKey = location.host === environment.stagingHost ? 'pk_test_51JM8FBFtHdda1TsBTjVNBFMIAA8cXLNWTmZCF22FCS5swdJIFqMk82ZEeZpvTys7oxlDekdcYIGaQ5MEFz6lWa2s000r6RziCg' : 'pk_live_51JM8FBFtHdda1TsBR7nieMFVFigZAUXbPhQTNvaSyLynIW1lbfzO6rfqqIUn0JAGJRq9mrwKwrVCsDDFOs84M7pE006xDqNgHk'


if (environment.production) {
Expand Down Expand Up @@ -79,7 +80,7 @@ bootstrapApplication(AppComponent, {
// ...saasExtraModules,
NgxThemeModule.forRoot(colorConfig, {
frameworks: ['material'], // optional, default : ['tailwind', 'material']
}), NgxStripeModule.forRoot('pk_live_51JM8FBFtHdda1TsBR7nieMFVFigZAUXbPhQTNvaSyLynIW1lbfzO6rfqqIUn0JAGJRq9mrwKwrVCsDDFOs84M7pE006xDqNgHk'), ConfigModule.buildForConfigUrl('/config.json')),
}), NgxStripeModule.forRoot(stripeKey), ConfigModule.buildForConfigUrl('/config.json')),
PasswordStrengthMeterComponent,
ConnectionsService,
UsersService,
Expand Down